CCF
|
#include <http_builder.h>
Inherits http::Message.
Public Member Functions | |
Response (ccf::http_status s=HTTP_STATUS_OK) | |
std::vector< uint8_t > | build_response (bool header_only=false) const |
![]() | |
const ccf::http::HeaderMap & | get_headers () const |
void | set_header (std::string k, const std::string &v) |
void | clear_headers () |
size_t | get_content_length () const |
const uint8_t * | get_content_data () const |
void | set_body (const std::vector< uint8_t > *b, bool overwrite_content_length=true) |
void | set_body (const uint8_t *b, size_t s, bool overwrite_content_length=true) |
void | set_body (const std::string &s, bool overwrite_content_length=true) |
Additional Inherited Members | |
![]() | |
Message ()=default | |
![]() | |
ccf::http::HeaderMap | headers |
const uint8_t * | body = nullptr |
size_t | body_size = 0 |
|
inline |
|
inline |