13#ifndef ZEPHYR_INCLUDE_NET_HTTP_CLIENT_H_
14#define ZEPHYR_INCLUDE_NET_HTTP_CLIENT_H_
31#if !defined(HTTP_CRLF)
32#define HTTP_CRLF "\r\n"
35#if !defined(HTTP_STATUS_STR_SIZE)
36#define HTTP_STATUS_STR_SIZE 32
ZTEST_BMEM int timeout
Definition: main.c:31
void
Definition: eswifi_shell.c:15
http_final_call
Definition: http_client.h:40
#define HTTP_STATUS_STR_SIZE
Definition: http_client.h:36
int(* http_payload_cb_t)(int sock, struct http_request *req, void *user_data)
Callback used when data needs to be sent to the server.
Definition: http_client.h:61
void(* http_response_cb_t)(struct http_response *rsp, enum http_final_call final_data, void *user_data)
Callback used when data is received from the server.
Definition: http_client.h:92
int http_client_req(int sock, struct http_request *req, int32_t timeout, void *user_data)
Do a HTTP request. The callback is called when data is received from the HTTP server....
int(* http_header_cb_t)(int sock, struct http_request *req, void *user_data)
Callback can be used if application wants to construct additional HTTP headers when the HTTP request ...
Definition: http_client.h:79
@ HTTP_DATA_MORE
Definition: http_client.h:41
@ HTTP_DATA_FINAL
Definition: http_client.h:42
http_method
Definition: http_parser.h:92
IPv6 and IPv4 definitions.
__INT32_TYPE__ int32_t
Definition: stdint.h:44
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: http_client.h:161
struct http_parser parser
Definition: http_client.h:166
struct http_parser_settings parser_settings
Definition: http_client.h:169
void * user_data
Definition: http_client.h:177
struct k_work_delayable work
Definition: http_client.h:163
int sock
Definition: http_client.h:180
struct http_response response
Definition: http_client.h:174
k_timeout_t timeout
Definition: http_client.h:183
Definition: http_parser.h:225
Definition: http_parser.h:182
Definition: http_client.h:190
http_payload_cb_t payload_cb
Definition: http_client.h:245
const char * content_type_value
Definition: http_client.h:231
const char ** header_fields
Definition: http_client.h:228
const char * protocol
Definition: http_client.h:220
const char * host
Definition: http_client.h:234
size_t payload_len
Definition: http_client.h:253
const char * url
Definition: http_client.h:217
size_t recv_buf_len
Definition: http_client.h:214
const char ** optional_headers
Definition: http_client.h:272
http_header_cb_t optional_headers_cb
Definition: http_client.h:261
http_response_cb_t response
Definition: http_client.h:202
uint8_t * recv_buf
Definition: http_client.h:211
struct http_client_internal_data internal
Definition: http_client.h:192
const char * port
Definition: http_client.h:237
enum http_method method
Definition: http_client.h:197
const char * payload
Definition: http_client.h:248
const struct http_parser_settings * http_cb
Definition: http_client.h:208
Definition: http_client.h:99
uint8_t cl_present
Definition: http_client.h:154
size_t processed
Definition: http_client.h:137
http_response_cb_t cb
Definition: http_client.h:107
size_t data_len
Definition: http_client.h:129
uint8_t message_complete
Definition: http_client.h:156
size_t recv_buf_len
Definition: http_client.h:118
uint16_t http_status_code
Definition: http_client.h:152
uint8_t * recv_buf
Definition: http_client.h:115
uint8_t * body_start
Definition: http_client.h:110
uint8_t body_found
Definition: http_client.h:155
char http_status[32]
Definition: http_client.h:147
size_t content_length
Definition: http_client.h:132
const struct http_parser_settings * http_cb
Definition: http_client.h:101
Kernel timeout type.
Definition: sys_clock.h:65
A structure used to submit work after a delay.
Definition: kernel.h:3651
static const intptr_t user_data[5]
Definition: main.c:590