18#ifndef __VSF_HTTP_CLIENT_H__
19#define __VSF_HTTP_CLIENT_H__
25#if defined(__VSF_HTTP_CLIENT_CLASS_IMPLEMENT)
26# define __VSF_CLASS_IMPLEMENT__
27#elif defined(__VSF_HTTP_CLIENT_CLASS_INHERIT__)
28# define __VSF_CLASS_INHERIT__
41 int (*fn_connect)(
void *param,
const char *host,
const char *port);
42 void (*fn_close)(
void *param);
67 const vsf_http_op_t *op;
83#if VSF_USE_MBEDTLS == ENABLED
Definition vsf_http_client.h:65
#define vsf_class(__name)
Definition ooc_class.h:48
#define vsf_declare_class(__name)
Definition ooc_class.h:45
unsigned short uint16_t
Definition stdint.h:7
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_http_client.h:49
const char * verb
Definition vsf_http_client.h:52
uint8_t * txdata
Definition vsf_http_client.h:58
char * header
Definition vsf_http_client.h:55
const char * host
Definition vsf_http_client.h:50
size_t txdata_len
Definition vsf_http_client.h:59
const char * port
Definition vsf_http_client.h:51
void(* on_response_header)(vsf_http_client_t *http, vsf_http_client_req_t *req, char *line)
Definition vsf_http_client.h:62
char * path
Definition vsf_http_client.h:56
const char * connect_mode
Definition vsf_http_client.h:53
void vsf_http_client_close(vsf_http_client_t *http)
Definition vsf_http_client.c:74
int vsf_http_client_write(vsf_http_client_t *http, uint8_t *buf, uint16_t len)
Definition vsf_http_client.c:249
const vsf_http_op_t vsf_mbedtls_http_op
Definition vsf_http_client.c:47
void vsf_http_client_init(vsf_http_client_t *http)
Definition vsf_http_client.c:69
int vsf_http_client_request(vsf_http_client_t *http, vsf_http_client_req_t *req)
Definition vsf_http_client.c:79
int vsf_http_client_read(vsf_http_client_t *http, uint8_t *buf, uint16_t len)
Definition vsf_http_client.c:185