Microchip® Advanced Software Framework

http_client_module Struct Reference

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().

char http_client_module::host[HOSTNAME_MAX_SIZE]

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(), and _http_client_read_chuked_entity().

uint8_t http_client_module::sending
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().