Zephyr API Documentation  3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
client.h File Reference

HTTP client API. More...

Go to the source code of this file.

Data Structures

struct  http_response
 HTTP response from the server. More...
 
struct  http_client_internal_data
 HTTP client internal data that the application should not touch. More...
 
struct  http_request
 HTTP client request. More...
 

Typedefs

typedef 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.
 
typedef 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 is sent.
 
typedef 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.
 

Enumerations

enum  http_final_call { HTTP_DATA_MORE = 0 , HTTP_DATA_FINAL = 1 }
 Is there more data to come. More...
 

Functions

int http_client_req (int sock, struct http_request *req, int32_t timeout, void *user_data)
 Do a HTTP request.
 

Detailed Description

HTTP client API.

An API for applications do HTTP requests