Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
sol-http-client.h File Reference

HTTP client. More...

#include <sol-http.h>

Go to the source code of this file.

Data Structures

struct  sol_http_request_interface
 The HTTP request interface to use when creating a new request. More...
 

Macros

#define SOL_HTTP_REQUEST_INTERFACE_API_VERSION   (1)
 

Typedefs

typedef struct
sol_http_client_connection 
sol_http_client_connection
 Opaque handler for an HTTP client connection. More...
 
typedef struct
sol_http_request_interface 
sol_http_request_interface
 The HTTP request interface to use when creating a new request. More...
 

Functions

void sol_http_client_connection_cancel (struct sol_http_client_connection *pending)
 Cancel a pending request and release its resources. More...
 
struct sol_http_client_connectionsol_http_client_request (enum sol_http_method method, const char *url, const struct sol_http_params *params, void(*cb)(void *data, struct sol_http_client_connection *connection, struct sol_http_response *response), const void *data)
 Create a request for the specified URL using the given method. More...
 
struct sol_http_client_connectionsol_http_client_request_with_interface (enum sol_http_method method, const char *url, const struct sol_http_params *params, const struct sol_http_request_interface *interface, const void *data)
 Create a request for the specified URL using the given method. More...
 

Detailed Description

HTTP client.

API to perform HTTP(s) requests. It will buffer whole responses in memory, so it's more suitable to perform remote API calls than file transfers.

Macro Definition Documentation

#define SOL_HTTP_REQUEST_INTERFACE_API_VERSION   (1)