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

Used to rank content type priorities. More...

#include <sol-http.h>

Data Fields

struct sol_str_slice content_type
 The content type itself. More...
 
uint16_t index
 The original index as found in the content type/accept HTTP header. More...
 
double qvalue
 The qvalue for the content type. More...
 
struct sol_str_slice sub_type
 The sub type. More...
 
struct sol_vector tokens
 An array of sol_str_slice. More...
 
struct sol_str_slice type
 The type. More...
 

Detailed Description

Used to rank content type priorities.

See Also
sol_http_parse_content_type_priorities()
sol_http_content_type_priorities_array_clear()

Field Documentation

struct sol_str_slice sol_http_content_type_priority::content_type

The content type itself.

Example: "text/html"

uint16_t sol_http_content_type_priority::index

The original index as found in the content type/accept HTTP header.

double sol_http_content_type_priority::qvalue

The qvalue for the content type.

struct sol_str_slice sol_http_content_type_priority::sub_type

The sub type.

Example "html"

struct sol_vector sol_http_content_type_priority::tokens

An array of sol_str_slice.

For example, for the content type "text/html;level=1;level2", this array would contain "level=1" and "level=2"

struct sol_str_slice sol_http_content_type_priority::type

The type.

Example "text"


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