C++ edjLibrary SDK
|
Response for HTTP fetch request, which may include body, headers, and status code. More...
#include <fetch.hpp>
Public Member Functions | |
edjx::http::HttpStatusCode | get_status_code () const |
Returns the HTTP status code of the fetch response. More... | |
const edjx::http::HttpHeaders & | get_headers () const |
Returns HTTP headers of the fetch response. More... | |
const std::vector< uint8_t > & | get_body () const |
Returns the HTTP body of the fetch response. More... | |
Public Attributes | |
edjx::http::HttpStatusCode | status |
HTTP status code of the response. More... | |
edjx::http::HttpHeaders | headers |
HTTP headers of the response. More... | |
std::vector< uint8_t > | body |
Body of the response. More... | |
Response for HTTP fetch request, which may include body, headers, and status code.
const std::vector< uint8_t > & edjx::fetch::FetchResponse::get_body | ( | ) | const |
Returns the HTTP body of the fetch response.
const edjx::http::HttpHeaders & edjx::fetch::FetchResponse::get_headers | ( | ) | const |
Returns HTTP headers of the fetch response.
edjx::http::HttpStatusCode edjx::fetch::FetchResponse::get_status_code | ( | ) | const |
Returns the HTTP status code of the fetch response.
std::vector<uint8_t> edjx::fetch::FetchResponse::body |
Body of the response.
edjx::http::HttpHeaders edjx::fetch::FetchResponse::headers |
HTTP headers of the response.
edjx::http::HttpStatusCode edjx::fetch::FetchResponse::status |
HTTP status code of the response.