Request Struct Reference

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

Public Member Functions

MultipartFormData get_file_value (const std::string &key) const
 
std::vector< MultipartFormDataget_file_values (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_count (const std::string &key) const
 
uint64_t get_header_value_u64 (const std::string &key, uint64_t def=0, size_t id=0) 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 has_file (const std::string &key) const
 
bool has_header (const std::string &key) const
 
bool has_param (const std::string &key) const
 
bool is_multipart_form_data () const
 
void set_header (const std::string &key, const std::string &val)
 

Public Attributes

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

Detailed Description

Definition at line 612 of file httplib.h.

Member Function Documentation

◆ get_file_value()

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

Definition at line 5723 of file httplib.h.

+ Here is the call graph for this function:

◆ get_file_values()

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

Definition at line 5730 of file httplib.h.

+ Here is the call graph for this function:

◆ get_header_value()

std::string get_header_value ( const std::string &  key,
const char *  def = "",
size_t  id = 0 
) const
inline

Definition at line 5679 of file httplib.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_header_value_count()

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

Definition at line 5684 of file httplib.h.

+ Here is the call graph for this function:

◆ get_header_value_u64()

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

Definition at line 2029 of file httplib.h.

+ Here is the call graph for this function:

◆ get_param_value()

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

Definition at line 5700 of file httplib.h.

◆ get_param_value_count()

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

Definition at line 5709 of file httplib.h.

+ Here is the call graph for this function:

◆ has_file()

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

Definition at line 5719 of file httplib.h.

+ Here is the call graph for this function:

◆ has_header()

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

Definition at line 5675 of file httplib.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ has_param()

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

Definition at line 5696 of file httplib.h.

◆ is_multipart_form_data()

bool is_multipart_form_data ( ) const
inline

Definition at line 5714 of file httplib.h.

+ Here is the call graph for this function:

◆ set_header()

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

Definition at line 5689 of file httplib.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ authorization_count_

size_t authorization_count_ = 0

Definition at line 663 of file httplib.h.

◆ body

std::string body

Definition at line 617 of file httplib.h.

◆ content_length_

size_t content_length_ = 0

Definition at line 660 of file httplib.h.

◆ content_provider_

ContentProvider content_provider_

Definition at line 661 of file httplib.h.

◆ content_receiver

ContentReceiverWithProgress content_receiver

Definition at line 634 of file httplib.h.

◆ files

Definition at line 627 of file httplib.h.

◆ headers

Headers headers

Definition at line 616 of file httplib.h.

◆ is_chunked_content_provider_

bool is_chunked_content_provider_ = false

Definition at line 662 of file httplib.h.

◆ local_addr

std::string local_addr

Definition at line 621 of file httplib.h.

◆ local_port

int local_port = -1

Definition at line 622 of file httplib.h.

◆ matches

Match matches

Definition at line 629 of file httplib.h.

◆ method

std::string method

Definition at line 613 of file httplib.h.

◆ params

Params params

Definition at line 615 of file httplib.h.

◆ path

std::string path

Definition at line 614 of file httplib.h.

◆ path_params

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

Definition at line 630 of file httplib.h.

◆ progress

Progress progress

Definition at line 635 of file httplib.h.

◆ ranges

Ranges ranges

Definition at line 628 of file httplib.h.

◆ redirect_count_

size_t redirect_count_ = CPPHTTPLIB_REDIRECT_MAX_COUNT

Definition at line 659 of file httplib.h.

◆ remote_addr

std::string remote_addr

Definition at line 619 of file httplib.h.

◆ remote_port

int remote_port = -1

Definition at line 620 of file httplib.h.

◆ response_handler

ResponseHandler response_handler

Definition at line 633 of file httplib.h.

◆ target

std::string target

Definition at line 626 of file httplib.h.

◆ version

std::string version

Definition at line 625 of file httplib.h.


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