D++ (DPP)
C++ Discord API Bot Library
httplib::Request Struct Reference

#include <httplib.h>

+ Collaboration diagram for httplib::Request:

Public Member Functions

bool has_header (const char *key) const
 
std::string get_header_value (const char *key, size_t id=0) const
 
template<typename T >
get_header_value (const char *key, size_t id=0) const
 
size_t get_header_value_count (const char *key) const
 
void set_header (const char *key, const char *val)
 
void set_header (const char *key, const std::string &val)
 
bool has_param (const char *key) const
 
std::string get_param_value (const char *key, size_t id=0) const
 
size_t get_param_value_count (const char *key) const
 
bool is_multipart_form_data () const
 
bool has_file (const char *key) const
 
MultipartFormData get_file_value (const char *key) const
 

Public Attributes

std::string method
 
std::string path
 
Headers headers
 
std::string body
 
std::string remote_addr
 
int remote_port = -1
 
std::string version
 
std::string target
 
Params params
 
MultipartFormDataMap files
 
Ranges ranges
 
Match matches
 
ResponseHandler response_handler
 
ContentReceiverWithProgress content_receiver
 
Progress progress
 
size_t redirect_count_ = 20
 
size_t content_length_ = 0
 
ContentProvider content_provider_
 
bool is_chunked_content_provider_ = false
 
size_t authorization_count_ = 0
 

Member Function Documentation

◆ get_file_value()

MultipartFormData httplib::Request::get_file_value ( const char *  key) const

◆ get_header_value() [1/2]

std::string httplib::Request::get_header_value ( const char *  key,
size_t  id = 0 
) const

◆ get_header_value() [2/2]

template<typename T >
T httplib::Request::get_header_value ( const char *  key,
size_t  id = 0 
) const

◆ get_header_value_count()

size_t httplib::Request::get_header_value_count ( const char *  key) const

◆ get_param_value()

std::string httplib::Request::get_param_value ( const char *  key,
size_t  id = 0 
) const

◆ get_param_value_count()

size_t httplib::Request::get_param_value_count ( const char *  key) const

◆ has_file()

bool httplib::Request::has_file ( const char *  key) const

◆ has_header()

bool httplib::Request::has_header ( const char *  key) const

◆ has_param()

bool httplib::Request::has_param ( const char *  key) const

◆ is_multipart_form_data()

bool httplib::Request::is_multipart_form_data ( ) const

◆ set_header() [1/2]

void httplib::Request::set_header ( const char *  key,
const char *  val 
)

◆ set_header() [2/2]

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

Member Data Documentation

◆ authorization_count_

size_t httplib::Request::authorization_count_ = 0

◆ body

std::string httplib::Request::body

◆ content_length_

size_t httplib::Request::content_length_ = 0

◆ content_provider_

ContentProvider httplib::Request::content_provider_

◆ content_receiver

ContentReceiverWithProgress httplib::Request::content_receiver

◆ files

MultipartFormDataMap httplib::Request::files

◆ headers

Headers httplib::Request::headers

◆ is_chunked_content_provider_

bool httplib::Request::is_chunked_content_provider_ = false

◆ matches

Match httplib::Request::matches

◆ method

std::string httplib::Request::method

◆ params

Params httplib::Request::params

◆ path

std::string httplib::Request::path

◆ progress

Progress httplib::Request::progress

◆ ranges

Ranges httplib::Request::ranges

◆ redirect_count_

size_t httplib::Request::redirect_count_ = 20

◆ remote_addr

std::string httplib::Request::remote_addr

◆ remote_port

int httplib::Request::remote_port = -1

◆ response_handler

ResponseHandler httplib::Request::response_handler

◆ target

std::string httplib::Request::target

◆ version

std::string httplib::Request::version
D++ Library version 10.0.35D++ Library version 10.0.34D++ Library version 10.0.33D++ Library version 10.0.32D++ Library version 10.0.31D++ Library version 10.0.30D++ Library version 10.0.29D++ Library version 10.0.28D++ Library version 10.0.27D++ Library version 10.0.26D++ Library version 10.0.25D++ Library version 10.0.24D++ Library version 10.0.23D++ Library version 10.0.22D++ Library version 10.0.21D++ Library version 10.0.20D++ Library version 10.0.19D++ Library version 10.0.18D++ Library version 10.0.17D++ Library version 10.0.16D++ Library version 10.0.15D++ Library version 10.0.14D++ Library version 10.0.13D++ Library version 10.0.12D++ Library version 10.0.11D++ Library version 10.0.10D++ Library version 10.0.9D++ Library version 10.0.8D++ Library version 10.0.7D++ Library version 10.0.6D++ Library version 10.0.5D++ Library version 10.0.4D++ Library version 10.0.3D++ Library version 10.0.2D++ Library version 10.0.1D++ Library version 10.0.0D++ Library version 9.0.19D++ Library version 9.0.18D++ Library version 9.0.17D++ Library version 9.0.16D++ Library version 9.0.15D++ Library version 9.0.14D++ Library version 9.0.13D++ Library version 9.0.12D++ Library version 9.0.11D++ Library version 9.0.10D++ Library version 9.0.9D++ Library version 9.0.8D++ Library version 9.0.7D++ Library version 9.0.6D++ Library version 9.0.5D++ Library version 9.0.4D++ Library version 9.0.3D++ Library version 9.0.2D++ Library version 9.0.1D++ Library version 9.0.0D++ Library version 1.0.2D++ Library version 1.0.1D++ Library version 1.0.0