#include <httplib.h>
|
| bool | has_header (const std::string &key) const |
| |
| std::string | get_header_value (const std::string &key, const char *def="", size_t id=0) const |
| |
| size_t | get_header_value_u64 (const std::string &key, size_t def=0, size_t id=0) const |
| |
| size_t | get_header_value_count (const std::string &key) const |
| |
| void | set_header (const std::string &key, const std::string &val) |
| |
| bool | has_trailer (const std::string &key) const |
| |
| std::string | get_trailer_value (const std::string &key, size_t id=0) const |
| |
| size_t | get_trailer_value_count (const std::string &key) const |
| |
| void | set_redirect (const std::string &url, int status=StatusCode::Found_302) |
| |
| void | set_content (const char *s, size_t n, const std::string &content_type) |
| |
| void | set_content (const std::string &s, const std::string &content_type) |
| |
| void | set_content (std::string &&s, const std::string &content_type) |
| |
| void | set_content_provider (size_t length, const std::string &content_type, ContentProvider provider, ContentProviderResourceReleaser resource_releaser=nullptr) |
| |
| void | set_content_provider (const std::string &content_type, ContentProviderWithoutLength provider, ContentProviderResourceReleaser resource_releaser=nullptr) |
| |
| void | set_chunked_content_provider (const std::string &content_type, ContentProviderWithoutLength provider, ContentProviderResourceReleaser resource_releaser=nullptr) |
| |
| void | set_file_content (const std::string &path, const std::string &content_type) |
| |
| void | set_file_content (const std::string &path) |
| |
| | Response ()=default |
| |
| | Response (const Response &)=default |
| |
| Response & | operator= (const Response &)=default |
| |
| | Response (Response &&)=default |
| |
| Response & | operator= (Response &&)=default |
| |
| | ~Response () |
| |
◆ Response() [1/3]
| httplib::Response::Response |
( |
| ) |
|
|
default |
◆ Response() [2/3]
| httplib::Response::Response |
( |
const Response & | | ) |
|
|
default |
◆ Response() [3/3]
| httplib::Response::Response |
( |
Response && | | ) |
|
|
default |
◆ ~Response()
| httplib::Response::~Response |
( |
| ) |
|
|
inline |
◆ get_header_value()
| std::string httplib::Response::get_header_value |
( |
const std::string & | key, |
|
|
const char * | def = "", |
|
|
size_t | id = 0 ) const |
|
inline |
◆ get_header_value_count()
| size_t httplib::Response::get_header_value_count |
( |
const std::string & | key | ) |
const |
|
inline |
◆ get_header_value_u64()
| size_t httplib::Response::get_header_value_u64 |
( |
const std::string & | key, |
|
|
size_t | def = 0, |
|
|
size_t | id = 0 ) const |
|
inline |
◆ get_trailer_value()
| std::string httplib::Response::get_trailer_value |
( |
const std::string & | key, |
|
|
size_t | id = 0 ) const |
|
inline |
◆ get_trailer_value_count()
| size_t httplib::Response::get_trailer_value_count |
( |
const std::string & | key | ) |
const |
|
inline |
◆ has_header()
| bool httplib::Response::has_header |
( |
const std::string & | key | ) |
const |
|
inline |
◆ has_trailer()
| bool httplib::Response::has_trailer |
( |
const std::string & | key | ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_chunked_content_provider()
◆ set_content() [1/3]
| void httplib::Response::set_content |
( |
const char * | s, |
|
|
size_t | n, |
|
|
const std::string & | content_type ) |
|
inline |
◆ set_content() [2/3]
| void httplib::Response::set_content |
( |
const std::string & | s, |
|
|
const std::string & | content_type ) |
|
inline |
◆ set_content() [3/3]
| void httplib::Response::set_content |
( |
std::string && | s, |
|
|
const std::string & | content_type ) |
|
inline |
◆ set_content_provider() [1/2]
◆ set_content_provider() [2/2]
◆ set_file_content() [1/2]
| void httplib::Response::set_file_content |
( |
const std::string & | path | ) |
|
|
inline |
◆ set_file_content() [2/2]
| void httplib::Response::set_file_content |
( |
const std::string & | path, |
|
|
const std::string & | content_type ) |
|
inline |
◆ set_header()
| void httplib::Response::set_header |
( |
const std::string & | key, |
|
|
const std::string & | val ) |
|
inline |
◆ set_redirect()
◆ body
| std::string httplib::Response::body |
◆ content_length_
| size_t httplib::Response::content_length_ = 0 |
◆ content_provider_
◆ content_provider_resource_releaser_
◆ content_provider_success_
| bool httplib::Response::content_provider_success_ = false |
◆ file_content_content_type_
| std::string httplib::Response::file_content_content_type_ |
◆ file_content_path_
| std::string httplib::Response::file_content_path_ |
◆ headers
◆ is_chunked_content_provider_
| bool httplib::Response::is_chunked_content_provider_ = false |
◆ location
| std::string httplib::Response::location |
◆ reason
| std::string httplib::Response::reason |
◆ status
| int httplib::Response::status = -1 |
◆ trailers
| Headers httplib::Response::trailers |
◆ user_data
| std::map<std::string, any> httplib::Response::user_data |
◆ version
| std::string httplib::Response::version |
The documentation for this struct was generated from the following file:
- third_party/src/include/camcom/third_party/httplib.h