Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Implementing headers

$
0
0
Hi maverick786us,

In your code snippet you are adding headers to the http_request object that already came into the listener. It sounds like instead you want them to be on the HTTP response, no? Construct an http_response object and call http_response::headers().add(...). Then you can reply to the request using http_request::reply(...).

Steve

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>