C++ edjLibrary SDK
Public Member Functions | Public Attributes | List of all members
edjx::fetch::FetchResponse Struct Reference

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::HttpHeadersget_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...
 

Detailed Description

Response for HTTP fetch request, which may include body, headers, and status code.

Member Function Documentation

◆ get_body()

const std::vector< uint8_t > & edjx::fetch::FetchResponse::get_body ( ) const

Returns the HTTP body of the fetch response.

Returns
Response body

◆ get_headers()

const edjx::http::HttpHeaders & edjx::fetch::FetchResponse::get_headers ( ) const

Returns HTTP headers of the fetch response.

Returns
HTTP headers

◆ get_status_code()

edjx::http::HttpStatusCode edjx::fetch::FetchResponse::get_status_code ( ) const

Returns the HTTP status code of the fetch response.

Returns
Response status code

Member Data Documentation

◆ body

std::vector<uint8_t> edjx::fetch::FetchResponse::body

Body of the response.

◆ headers

edjx::http::HttpHeaders edjx::fetch::FetchResponse::headers

HTTP headers of the response.

◆ status

edjx::http::HttpStatusCode edjx::fetch::FetchResponse::status

HTTP status code of the response.


The documentation for this struct was generated from the following file: