|
Boost Users : |
Subject: Re: [Boost-users] [beast] Custom, application specific header
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2018-03-27 15:29:24
On Tue, Mar 27, 2018 at 1:09 AM, DePizzottri via Boost-users
<boost-users_at_[hidden]> wrote:
> I need to send custom application specific header in the response, but
> http::response operates only with set of predefined http::field values.
Use the overload of basic_fields::insert which accepts a string_view
for the field name:
boost::beast::http::request<boost::beast::http::empty_body> req;
req.insert("X-Application-Header", "Value");
Thanks
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