Goby3  3.1.5a
2024.05.23
httplib::Request Struct Reference

#include <goby/util/thirdparty/cpp-httplib/httplib.h>

Public Member Functions

bool has_header (const std::string &key) const
 
std::string get_header_value (const std::string &key, size_t id=0) const
 
uint64_t get_header_value_u64 (const std::string &key, 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_param (const std::string &key) const
 
std::string get_param_value (const std::string &key, size_t id=0) const
 
size_t get_param_value_count (const std::string &key) const
 
bool is_multipart_form_data () const
 
bool has_file (const std::string &key) const
 
MultipartFormData get_file_value (const std::string &key) const
 
std::vector< MultipartFormDataget_file_values (const std::string &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 local_addr
 
int local_port = -1
 
std::string version
 
std::string target
 
Params params
 
MultipartFormDataMap files
 
Ranges ranges
 
Match matches
 
std::unordered_map< std::string, std::string > path_params
 
ResponseHandler response_handler
 
ContentReceiverWithProgress content_receiver
 
Progress progress
 
size_t redirect_count_ = CPPHTTPLIB_REDIRECT_MAX_COUNT
 
size_t content_length_ = 0
 
ContentProvider content_provider_
 
bool is_chunked_content_provider_ = false
 
size_t authorization_count_ = 0
 

Detailed Description

Definition at line 472 of file httplib.h.

Member Function Documentation

◆ get_file_value()

MultipartFormData httplib::Request::get_file_value ( const std::string &  key) const
inline

Definition at line 5806 of file httplib.h.

◆ get_file_values()

std::vector< MultipartFormData > httplib::Request::get_file_values ( const std::string &  key) const
inline

Definition at line 5816 of file httplib.h.

◆ get_header_value()

std::string httplib::Request::get_header_value ( const std::string &  key,
size_t  id = 0 
) const
inline

Definition at line 5753 of file httplib.h.

◆ get_header_value_count()

size_t httplib::Request::get_header_value_count ( const std::string &  key) const
inline

Definition at line 5758 of file httplib.h.

◆ get_header_value_u64()

uint64_t httplib::Request::get_header_value_u64 ( const std::string &  key,
size_t  id = 0 
) const
inline

Definition at line 1678 of file httplib.h.

◆ get_param_value()

std::string httplib::Request::get_param_value ( const std::string &  key,
size_t  id = 0 
) const
inline

Definition at line 5777 of file httplib.h.

◆ get_param_value_count()

size_t httplib::Request::get_param_value_count ( const std::string &  key) const
inline

Definition at line 5789 of file httplib.h.

◆ has_file()

bool httplib::Request::has_file ( const std::string &  key) const
inline

Definition at line 5801 of file httplib.h.

◆ has_header()

bool httplib::Request::has_header ( const std::string &  key) const
inline

Definition at line 5748 of file httplib.h.

◆ has_param()

bool httplib::Request::has_param ( const std::string &  key) const
inline

Definition at line 5772 of file httplib.h.

◆ is_multipart_form_data()

bool httplib::Request::is_multipart_form_data ( ) const
inline

Definition at line 5795 of file httplib.h.

◆ set_header()

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

Definition at line 5764 of file httplib.h.

Member Data Documentation

◆ authorization_count_

size_t httplib::Request::authorization_count_ = 0

Definition at line 522 of file httplib.h.

◆ body

std::string httplib::Request::body

Definition at line 477 of file httplib.h.

◆ content_length_

size_t httplib::Request::content_length_ = 0

Definition at line 519 of file httplib.h.

◆ content_provider_

ContentProvider httplib::Request::content_provider_

Definition at line 520 of file httplib.h.

◆ content_receiver

ContentReceiverWithProgress httplib::Request::content_receiver

Definition at line 495 of file httplib.h.

◆ files

MultipartFormDataMap httplib::Request::files

Definition at line 488 of file httplib.h.

◆ headers

Headers httplib::Request::headers

Definition at line 476 of file httplib.h.

◆ is_chunked_content_provider_

bool httplib::Request::is_chunked_content_provider_ = false

Definition at line 521 of file httplib.h.

◆ local_addr

std::string httplib::Request::local_addr

Definition at line 481 of file httplib.h.

◆ local_port

int httplib::Request::local_port = -1

Definition at line 482 of file httplib.h.

◆ matches

Match httplib::Request::matches

Definition at line 490 of file httplib.h.

◆ method

std::string httplib::Request::method

Definition at line 474 of file httplib.h.

◆ params

Params httplib::Request::params

Definition at line 487 of file httplib.h.

◆ path

std::string httplib::Request::path

Definition at line 475 of file httplib.h.

◆ path_params

std::unordered_map<std::string, std::string> httplib::Request::path_params

Definition at line 491 of file httplib.h.

◆ progress

Progress httplib::Request::progress

Definition at line 496 of file httplib.h.

◆ ranges

Ranges httplib::Request::ranges

Definition at line 489 of file httplib.h.

◆ redirect_count_

size_t httplib::Request::redirect_count_ = CPPHTTPLIB_REDIRECT_MAX_COUNT

Definition at line 518 of file httplib.h.

◆ remote_addr

std::string httplib::Request::remote_addr

Definition at line 479 of file httplib.h.

◆ remote_port

int httplib::Request::remote_port = -1

Definition at line 480 of file httplib.h.

◆ response_handler

ResponseHandler httplib::Request::response_handler

Definition at line 494 of file httplib.h.

◆ target

std::string httplib::Request::target

Definition at line 486 of file httplib.h.

◆ version

std::string httplib::Request::version

Definition at line 485 of file httplib.h.


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