|
oveRTOS C API
Embedded RTOS framework — build system, configuration, and portable C API
|


Go to the source code of this file.
Data Structures | |
| struct | ove_http_header_t |
| HTTP request header (name-value pair). More... | |
| struct | ove_http_response_t |
| HTTP response (returned by request functions). More... | |
Enumerations | |
| enum | ove_http_method_t { OVE_HTTP_GET = 0 , OVE_HTTP_POST = 1 , OVE_HTTP_PUT = 2 , OVE_HTTP_DELETE = 3 , OVE_HTTP_PATCH = 4 } |
| HTTP method. More... | |
Functions | |
| int | ove_http_client_init (ove_http_client_t *client, ove_http_client_storage_t *storage) |
| Initialise an HTTP client from caller-supplied storage. | |
| void | ove_http_client_deinit (ove_http_client_t client) |
| De-initialise an HTTP client. | |
| int | ove_http_get (ove_http_client_t client, const char *url, ove_http_response_t *resp) |
| Perform an HTTP GET request. | |
| int | ove_http_post (ove_http_client_t client, const char *url, const char *content_type, const void *body, size_t body_len, ove_http_response_t *resp) |
| Perform an HTTP POST request. | |
| int | ove_http_request (ove_http_client_t client, ove_http_method_t method, const char *url, const char *content_type, const void *body, size_t body_len, ove_http_response_t *resp) |
| Perform a generic HTTP request. | |
| int | ove_http_request_ex (ove_http_client_t client, ove_http_method_t method, const char *url, const char *content_type, const void *body, size_t body_len, const ove_http_header_t *headers, size_t header_count, ove_http_response_t *resp) |
| Perform an HTTP request with custom headers. | |
| void | ove_http_response_free (ove_http_response_t *resp) |
| Free resources in an HTTP response. | |
| int | ove_http_client_create (ove_http_client_t *client) |
| Heap-allocate and initialise an HTTP client. | |
| void | ove_http_client_destroy (ove_http_client_t client) |
| Destroy a heap-allocated HTTP client. | |