|
Boost Users : |
Subject: Re: [Boost-users] Boost.Beast includes CRLF in HTTP fields
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2018-07-07 14:01:14
On Sat, Jul 7, 2018 at 1:19 AM, David Demelier via Boost-users
<boost-users_at_[hidden]> wrote:
> I was blindly doing:
>
> cout << foo[field::location];
If `foo` is an instance of http::basic_fields, then the expression
above should not produce the CRLF sequence. It should output only the
value of the Location field.
On Sat, Jul 7, 2018 at 1:43 AM, Richard Hodges via Boost-users
<boost-users_at_[hidden]> wrote:
> Out of interest, why do these functions return a const string_view?
To prevent assignments such as:
foo[field::location] = "localhost:8080/index.html";
The statement above has no effect, the `const` annotation prevents it
from compiling.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net