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 Fields
sol_http_response Struct Reference

Handle for an HTTP response. More...

#include <sol-http.h>

Data Fields

uint16_t api_version
 
struct sol_buffer content
 
const char * content_type
 
struct sol_http_params param
 
int response_code
 
const char * url
 

Detailed Description

Handle for an HTTP response.

A response is composed by a response code, that may be one of enum sol_http_status_code, a vector of parameters, URL, definition of content type, like "text" or "application/json", and the response content itself.

Examples:
/src/samples/http/client.c, /src/samples/http/download.c, /src/samples/http/server-https.c, /src/samples/http/server-sse.c, and /src/samples/http/server.c.

Field Documentation

uint16_t sol_http_response::api_version
struct sol_buffer sol_http_response::content
const char* sol_http_response::content_type
struct sol_http_params sol_http_response::param
int sol_http_response::response_code
const char* sol_http_response::url

The documentation for this struct was generated from the following file: