Darknet/YOLO v3.0-88-gdee7eef
Object Detection Framework
 
Loading...
Searching...
No Matches
httplib::Response Struct Reference

#include "httplib.hpp"

Collaboration diagram for httplib::Response:

Public Member Functions

 Response ()
 
 ~Response ()
 
std::string get_header_value (const char *key, size_t id=0) const
 
size_t get_header_value_count (const char *key) const
 
bool has_header (const char *key) const
 
void set_chunked_content_provider (std::function< void(size_t offset, DataSink sink, Done done)> provider, std::function< void()> resource_releaser=[] {})
 
void set_content (const char *s, size_t n, const char *content_type)
 
void set_content (const std::string &s, const char *content_type)
 
void set_content_provider (size_t length, std::function< void(size_t offset, size_t length, DataSink sink)> provider, std::function< void()> resource_releaser=[] {})
 
void set_header (const char *key, const char *val)
 
void set_header (const char *key, const std::string &val)
 
void set_redirect (const char *url)
 

Public Attributes

std::string body
 
size_t content_length
 
ContentProviderWithCloser content_provider
 
std::function< void()> content_provider_resource_releaser
 
Headers headers
 
int status
 
std::string version
 

Constructor & Destructor Documentation

◆ Response()

httplib::Response::Response ( )
inline

◆ ~Response()

httplib::Response::~Response ( )
inline

Member Function Documentation

◆ get_header_value()

std::string httplib::Response::get_header_value ( const char *  key,
size_t  id = 0 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_header_value_count()

size_t httplib::Response::get_header_value_count ( const char *  key) const
inline

◆ has_header()

bool httplib::Response::has_header ( const char *  key) const
inline
Here is the caller graph for this function:

◆ set_chunked_content_provider()

void httplib::Response::set_chunked_content_provider ( std::function< void(size_t offset, DataSink sink, Done done)>  provider,
std::function< void()>  resource_releaser = [] {} 
)
inline

◆ set_content() [1/2]

void httplib::Response::set_content ( const char *  s,
size_t  n,
const char *  content_type 
)
inline
Here is the call graph for this function:

◆ set_content() [2/2]

void httplib::Response::set_content ( const std::string &  s,
const char *  content_type 
)
inline
Here is the call graph for this function:

◆ set_content_provider()

void httplib::Response::set_content_provider ( size_t  length,
std::function< void(size_t offset, size_t length, DataSink sink)>  provider,
std::function< void()>  resource_releaser = [] {} 
)
inline

◆ set_header() [1/2]

void httplib::Response::set_header ( const char *  key,
const char *  val 
)
inline
Here is the caller graph for this function:

◆ set_header() [2/2]

void httplib::Response::set_header ( const char *  key,
const std::string &  val 
)
inline

◆ set_redirect()

void httplib::Response::set_redirect ( const char *  url)
inline
Here is the call graph for this function:

Member Data Documentation

◆ body

std::string httplib::Response::body

◆ content_length

size_t httplib::Response::content_length

◆ content_provider

ContentProviderWithCloser httplib::Response::content_provider

◆ content_provider_resource_releaser

std::function<void()> httplib::Response::content_provider_resource_releaser

◆ headers

Headers httplib::Response::headers

◆ status

int httplib::Response::status

◆ version

std::string httplib::Response::version

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