2 #include "crow/http_request.h"
3 #include "crow/http_response.h"
20 res.
set_header(
"Content-Type",
"text/plain; charset=utf-8");
The main namespace of the library. In this namespace is defined the most important classes and functi...
const std::string & get_header_value(const T &headers, const std::string &key)
Find and return the value associated with the key. (returns an empty string if nothing is found)
Definition: http_request.h:24
An HTTP request.
Definition: http_request.h:36
HTTP response.
Definition: http_response.h:34
void set_header(std::string key, std::string value)
Set the value of an existing header in the response.
Definition: http_response.h:51
ci_map headers
HTTP headers.
Definition: http_response.h:42