CCF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
http::Response Class Reference

#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
 
- Public Member Functions inherited from http::Message
const ccf::http::HeaderMapget_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

- Protected Member Functions inherited from http::Message
 Message ()=default
 
- Protected Attributes inherited from http::Message
ccf::http::HeaderMap headers
 
const uint8_t * body = nullptr
 
size_t body_size = 0
 

Constructor & Destructor Documentation

◆ Response()

http::Response::Response ( ccf::http_status  s = HTTP_STATUS_OK)
inline

Member Function Documentation

◆ build_response()

std::vector< uint8_t > http::Response::build_response ( bool  header_only = false) const
inline

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