Structure of HTTP client connection instance.
#include <http_client.h>
Data Fields | |
uint8_t | alloc_buffer: 1 |
A flag for the receive buffer located in the heap. More... | |
http_client_callback_t | cb |
Callback interface entry. More... | |
struct http_client_config | config |
Configuration instance of HTTP client module. More... | |
char | host [HOSTNAME_MAX_SIZE] |
Destination host address of the session. More... | |
uint8_t | permanent: 1 |
A flag that whether using the permanent connection or not. More... | |
uint32_t | recved_size |
Size that received. More... | |
struct http_client_req | req |
Data relating the request. More... | |
struct http_client_resp | resp |
Data relating the response. More... | |
uint8_t | sending: 1 |
A flag for the socket is sending. More... | |
SOCKET | sock |
Socket instance of HTTP session. More... | |
int | timer_id |
SW Timer ID for the request time out. More... | |
uint8_t http_client_module::alloc_buffer |
A flag for the receive buffer located in the heap.
Referenced by http_client_deinit(), and http_client_init().
http_client_callback_t http_client_module::cb |
Callback interface entry.
Referenced by _http_client_clear_conn(), _http_client_handle_entity(), _http_client_handle_header(), _http_client_read_chuked_entity(), _http_client_request(), http_client_register_callback(), http_client_socket_event_handler(), http_client_socket_no_content_length_handler(), and http_client_unregister_callback().
struct http_client_config http_client_module::config |
Configuration instance of HTTP client module.
That was registered from the http_client_init
Referenced by _http_client_handle_entity(), _http_client_handle_header(), _http_client_move_buffer(), _http_client_read_chuked_entity(), _http_client_recv_packet(), _http_client_recved_packet(), _http_client_request(), http_client_deinit(), http_client_init(), http_client_send_request(), http_client_socket_event_handler(), http_client_socket_resolve_handler(), and start_download().
char http_client_module::host |
Destination host address of the session.
Referenced by _http_client_request(), http_client_send_request(), and http_client_socket_resolve_handler().
uint8_t http_client_module::permanent |
A flag that whether using the permanent connection or not.
Referenced by _http_client_clear_conn(), _http_client_handle_entity(), _http_client_handle_header(), _http_client_read_chuked_entity(), and http_client_socket_no_content_length_handler().
uint32_t http_client_module::recved_size |
Size that received.
Referenced by _http_client_handle_entity(), _http_client_handle_header(), _http_client_move_buffer(), _http_client_read_chuked_entity(), _http_client_recv_packet(), _http_client_recved_packet(), and http_client_send_request().
struct http_client_req http_client_module::req |
Data relating the request.
Referenced by _http_client_clear_conn(), _http_client_request(), http_client_close(), http_client_deinit(), http_client_init(), http_client_send_request(), http_client_socket_event_handler(), and http_client_socket_resolve_handler().
struct http_client_resp http_client_module::resp |
Data relating the response.
Referenced by _http_client_clear_conn(), _http_client_handle_entity(), _http_client_handle_header(), _http_client_handle_response(), _http_client_read_chuked_entity(), http_client_init(), and http_client_socket_no_content_length_handler().
uint8_t http_client_module::sending |
A flag for the socket is sending.
Referenced by _http_client_clear_conn(), _http_client_request(), _http_client_send_wait(), http_client_send_request(), and http_client_socket_event_handler().
SOCKET http_client_module::sock |
Socket instance of HTTP session.
Referenced by _http_client_clear_conn(), _http_client_recv_packet(), _http_client_request(), _http_client_send_wait(), http_client_send_request(), http_client_socket_event_handler(), and http_client_socket_resolve_handler().
int http_client_module::timer_id |
SW Timer ID for the request time out.
Referenced by _http_client_recved_packet(), http_client_init(), and http_client_socket_event_handler().