Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
http_client.h File Reference
HTTP client. More...
Go to the source code of this file.
Typedefs | |
| typedef enum ehttpc_result | httpc_result_t |
| HTTP client result codes. | |
| typedef void(* | httpc_result_fn )(void *arg, httpc_result_t httpc_result, u32_t rx_content_len, u32_t srv_res, err_t err) |
| Prototype of a http client callback function. | |
| typedef err_t(* | httpc_headers_done_fn )(httpc_state_t *connection, void *arg, struct pbuf *hdr, u16_t hdr_len, u32_t content_len) |
| Prototype of http client callback: called when the headers are received. | |
Enumerations | |
| enum | ehttpc_result { HTTPC_RESULT_OK = 0, HTTPC_RESULT_ERR_UNKNOWN = 1, HTTPC_RESULT_ERR_CONNECT = 2, HTTPC_RESULT_ERR_HOSTNAME = 3, HTTPC_RESULT_ERR_CLOSED = 4, HTTPC_RESULT_ERR_TIMEOUT = 5, HTTPC_RESULT_ERR_SVR_RESP = 6, HTTPC_RESULT_ERR_MEM = 7, HTTPC_RESULT_LOCAL_ABORT = 8, HTTPC_RESULT_ERR_CONTENT_LEN = 9 } |
HTTP client result codes. More... | |
Functions | |
| err_t | httpc_get_file (const ip_addr_t *server_addr, u16_t port, const char *uri, const httpc_connection_t *settings, altcp_recv_fn recv_fn, void *callback_arg, httpc_state_t **connection) |
| HTTP client API: get a file by passing server IP address. | |
| err_t | httpc_get_file_dns (const char *server_name, u16_t port, const char *uri, const httpc_connection_t *settings, altcp_recv_fn recv_fn, void *callback_arg, httpc_state_t **connection) |
| HTTP client API: get a file by passing server name as string (DNS name or IP address string) | |
| err_t | httpc_get_file_to_disk (const ip_addr_t *server_addr, u16_t port, const char *uri, const httpc_connection_t *settings, void *callback_arg, const char *local_file_name, httpc_state_t **connection) |
| HTTP client API: get a file to disk by passing server IP address. | |
| err_t | httpc_get_file_dns_to_disk (const char *server_name, u16_t port, const char *uri, const httpc_connection_t *settings, void *callback_arg, const char *local_file_name, httpc_state_t **connection) |
| HTTP client API: get a file to disk by passing server name as string (DNS name or IP address string) | |
Detailed Description
HTTP client.
Definition in file http_client.h.
Generated on Tue Jul 12 2022 13:55:12 by
1.7.2