1 #ifndef XXHR_RESPONSE_H
2 #define XXHR_RESPONSE_H
8 #include "xxhrtypes.hpp"
22 template <
typename TextType,
typename HeaderType,
typename UrlType,
typename CookiesType,
24 Response(
const std::int32_t& p_status_code, ErrorType&& p_error, TextType&& p_text, HeaderType&& p_header, UrlType&& p_url, CookiesType&& p_cookies = Cookies{})
26 error{XXHR_FWD(p_error)},
text{XXHR_FWD(p_text)},
header{XXHR_FWD(p_header)},
27 url{XXHR_FWD(p_url)},
cookies{XXHR_FWD(p_cookies)} {}
std::int32_t status_code
HTTP Status Code as Specified in HTTP RFC.
Definition: response.hpp:30
Cookies cookies
Cookies that the server would like you to keep reminding in future queries.
Definition: response.hpp:45
std::string text
Response body.
Definition: response.hpp:36
Error error
Error condition proper to a lower layer than HTTP.
Definition: response.hpp:33
Header header
Headers entries sent in the response.
Definition: response.hpp:39
Represents Errors happening at a lower layer than HTTP.
Definition: error.hpp:46
Passed to the unary callback xxhr::on_response. Provides access to request Content and Success,...
Definition: response.hpp:18
main library namespace
Definition: api.hpp:20
Url url
Url that served this.
Definition: response.hpp:42
std::map< std::string, std::string, CaseInsensitiveCompare > Header
HTTP Headers to add to the request or received in xxhr::Response.
Definition: xxhrtypes.hpp:23