HTTP Request Handle. More...
#include <src/http_request.h>
Data Fields | |
string_array_t * | header |
Header of http request. More... | |
mcl_uint8_t * | payload |
Payload of http request. More... | |
mcl_size_t | payload_size |
Payload size of http request. More... | |
mcl_size_t | payload_offset |
Payload offset of http request. More... | |
E_MCL_HTTP_METHOD | method |
Http method of http request. More... | |
string_t * | uri |
Uri of http request. More... | |
string_t * | boundary |
Boundary of http request. More... | |
mcl_size_t | max_http_payload_size |
Maximum http payload size of http request. More... | |
mcl_bool_t | resize_enabled |
The state or condition of being resizable. More... | |
mcl_bool_t | finalized |
The state of http request. More... | |
HTTP Request Handle.
Used to build http request messages. This structure is also used for http_client_send() operation.
Definition at line 79 of file http_request.h.
string_t* http_request_t::boundary |
Boundary of http request.
Definition at line 87 of file http_request.h.
Referenced by http_request_add_header(), http_request_add_single(), http_request_add_tuple(), http_request_finalize(), and http_request_start_tuple().
mcl_bool_t http_request_t::finalized |
The state of http request.
Definition at line 90 of file http_request.h.
string_array_t* http_request_t::header |
Header of http request.
Definition at line 81 of file http_request.h.
Referenced by _set_request_options(), and http_request_add_header().
mcl_size_t http_request_t::max_http_payload_size |
Maximum http payload size of http request.
Definition at line 88 of file http_request.h.
Referenced by _get_available_space(), and _resize_payload_buffer_if_necessary().
E_MCL_HTTP_METHOD http_request_t::method |
Http method of http request.
Definition at line 85 of file http_request.h.
Referenced by _set_request_options().
mcl_uint8_t* http_request_t::payload |
Payload of http request.
Definition at line 82 of file http_request.h.
Referenced by _add_blank_line(), _add_content_info(), _add_meta(), _add_payload(), _get_payload_from_file(), _request_payload_callback_for_put(), _resize_payload_buffer_if_necessary(), _set_request_options(), http_processor_get_access_token(), http_processor_register(), http_request_add_single(), http_request_add_tuple(), http_request_end_tuple_sub_section(), http_request_finalize(), http_request_start_tuple(), and http_request_start_tuple_sub_section().
mcl_size_t http_request_t::payload_offset |
Payload offset of http request.
Definition at line 84 of file http_request.h.
Referenced by _get_available_space(), _get_payload_from_file(), _request_payload_callback_for_put(), _resize_payload_buffer_if_necessary(), _set_request_options(), http_request_add_raw_data(), http_request_add_single(), http_request_add_tuple(), http_request_end_tuple_sub_section(), http_request_finalize(), http_request_start_tuple(), and http_request_start_tuple_sub_section().
mcl_size_t http_request_t::payload_size |
Payload size of http request.
Definition at line 83 of file http_request.h.
Referenced by _get_available_space(), _get_payload_from_file(), _request_payload_callback_for_put(), _resize_payload_buffer_if_necessary(), and _set_request_options().
mcl_bool_t http_request_t::resize_enabled |
The state or condition of being resizable.
Definition at line 89 of file http_request.h.
Referenced by _get_available_space(), and _resize_payload_buffer_if_necessary().
string_t* http_request_t::uri |
Uri of http request.
Definition at line 86 of file http_request.h.
Referenced by _set_request_options().