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.

http_client_callback_t http_client_module::cb

Callback interface entry.

struct http_client_config http_client_module::config

Configuration instance of HTTP client module.

That was registered from the http_client_init

char http_client_module::host[HOSTNAME_MAX_SIZE]

Destination host address of the session.

uint8_t http_client_module::permanent

A flag that whether using the permanent connection or not.

uint32_t http_client_module::recved_size

Size that received.

struct http_client_req http_client_module::req

Data relating the request.

struct http_client_resp http_client_module::resp

Data relating the response.

uint8_t http_client_module::sending

A flag for the socket is sending.

SOCKET http_client_module::sock

Socket instance of HTTP session.

int http_client_module::timer_id

SW Timer ID for the request time out.