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_param_value Struct Reference

Used to define an HTTP parameter. More...

#include <sol-http.h>

Data Fields

enum sol_http_param_type type
 
union {
   struct {
      struct sol_str_slice   password
 
      struct sol_str_slice   user
 
   }   auth
 
   struct {
      bool   value
 
   }   boolean
 
   struct {
      struct sol_str_slice   filename
 
      struct sol_str_slice   key
 
      struct sol_str_slice   value
 
   }   data
 
   struct {
      int32_t   value
 
   }   integer
 
   struct {
      struct sol_str_slice   key
 
      struct sol_str_slice   value
 
   }   key_value
 
value
 

Detailed Description

Used to define an HTTP parameter.

A parameter is defined by its type (one of enum sol_http_param_type) and its value. It may be a key-value parameter, authentication (user-password), or data.

Examples:
/src/samples/http/client.c.

Field Documentation

struct { ... } sol_http_param_value::auth
struct { ... } sol_http_param_value::boolean
struct { ... } sol_http_param_value::data
struct sol_str_slice sol_http_param_value::filename
struct { ... } sol_http_param_value::integer
struct sol_str_slice sol_http_param_value::key
struct { ... } sol_http_param_value::key_value
struct sol_str_slice sol_http_param_value::password
enum sol_http_param_type sol_http_param_value::type
struct sol_str_slice sol_http_param_value::user
struct sol_str_slice sol_http_param_value::value
bool sol_http_param_value::value
int32_t sol_http_param_value::value
union { ... } sol_http_param_value::value

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