11 #ifndef __ewf_adapter_http__h__included__
12 #define __ewf_adapter_http__h__included__
33 uint8_t context_id, uint8_t sprofile_id,
const char * server_addr,
34 uint16_t server_port,
bool auth_type,
const char * username_str,
35 const char * password_str,
bool ssl_enabled, uint32_t timeout);
38 char ** response_ptr_ptr, uint32 * response_length_ptr);
41 char ** response_ptr_ptr, uint32 * response_length_ptr);
44 char ** response_ptr_ptr, uint32 * response_length_ptr);
47 const char * data, uint8_t content_type,
48 char ** response_ptr_ptr, uint32 * response_length_ptr);
51 const char * data_str, uint8_t content_type,
52 char ** response_ptr_ptr, uint32 * response_length_ptr);
55 typedef int ewf_http_socket;
88 uint8_t context_id, uint8_t sprofile_id,
const char * server_addr,
89 uint16_t server_port,
bool auth_type,
const char * username_str,
90 const char * password_str,
bool ssl_enabled, uint32_t timeout);
103 char ** response_ptr_ptr, uint32 * response_length_ptr);
115 const char * uri_str,
116 char ** response_ptr_ptr, uint32 * response_length_ptr);
128 const char * uri_str,
129 char ** response_ptr_ptr, uint32 * response_length_ptr);
143 const char * uri_str,
144 const char * data, uint8_t content_type,
145 char ** response_ptr_ptr, uint32 * response_length_ptr);
160 const char * data_str, uint8_t content_type,
161 char ** response_ptr_ptr, uint32 * response_length_ptr);
The Embedded Wireless Framework adapter API implementation.
ewf_result ewf_adapter_http_post(ewf_adapter *adapter_ptr, ewf_http_socket http_socket, const char *uri_str, const char *data, uint8_t content_type, char **response_ptr_ptr, uint32 *response_length_ptr)
HTTP POST request.
ewf_result ewf_adapter_http_close(ewf_adapter *adapter_ptr, ewf_http_socket http_socket)
Close an HTTP socket.
ewf_result ewf_adapter_http_get(ewf_adapter *adapter_ptr, ewf_http_socket http_socket, const char *uri, char **response_ptr_ptr, uint32 *response_length_ptr)
HTTP GET request.
ewf_result ewf_adapter_http_put(ewf_adapter *adapter_ptr, ewf_http_socket http_socket, const char *uri_str const char *data_str, uint8_t content_type, char **response_ptr_ptr, uint32 *response_length_ptr)
HTTP PUT request.
ewf_result ewf_adapter_http_open(ewf_adapter *adapter_ptr, ewf_http_socket *http_socket_ptr)
Open an HTTP socket.
ewf_result ewf_adapter_http_context_configure(ewf_adapter *adapter_ptr, ewf_http_socket http_socket, uint8_t context_id, uint8_t sprofile_id, const char *server_addr, uint16_t server_port, bool auth_type, const char *username_str, const char *password_str, bool ssl_enabled, uint32_t timeout)
HTTP client configuration.
ewf_result ewf_adapter_http_head(ewf_adapter *adapter_ptr, ewf_http_socket http_socket, const char *uri_str, char **response_ptr_ptr, uint32 *response_length_ptr)
HTTP HEAD request.
ewf_result ewf_adapter_http_delete(ewf_adapter *adapter_ptr, ewf_http_socket http_socket, const char *uri_str, char **response_ptr_ptr, uint32 *response_length_ptr)
HTTP DELETE request.
enum _ewf_result ewf_result
Success and error result codes specific to the EWF API.
Definition: ewf_adapter_api_http.h:29
The EWF network adapter control structure definition.
Definition: ewf_adapter.h:50