IOLink  IOL_v1.1.0_release
iolink::HTTPHeaders Class Reference

A class used to pass HTTP headers as input of factories methods. More...

#include <iolink/storage/HTTPHeaders.h>

Classes

struct  Entry
 An entry of the HTTP header set. More...
 

Public Member Functions

 HTTPHeaders ()
 Create an empty set of headers.
 
 HTTPHeaders (const Entry *values, size_t count)
 Initialize the headers from an array of entries. More...
 
 HTTPHeaders (std::initializer_list< Entry > init)
 Initialize headers from an initializer list.
 
 HTTPHeaders (const HTTPHeaders &other)
 
HTTPHeadersoperator= (const HTTPHeaders &other)
 
 HTTPHeaders (HTTPHeaders &&other) noexcept
 
HTTPHeadersoperator= (HTTPHeaders &&other) noexcept
 
size_t size () const
 Return the number of entries in this headers set.
 
Entry at (size_t i) const
 Return the element at the given index.
 
Entry operator[] (size_t i) const
 Return the element at the given index.
 
void add (const Entry &entry)
 Add a new entry in the header set.
 
void add (const std::string &name, const std::string &value)
 Add a new entry in the hedaer set by giving its name and value.
 

Detailed Description

A class used to pass HTTP headers as input of factories methods.

Constructor & Destructor Documentation

◆ HTTPHeaders()

iolink::HTTPHeaders::HTTPHeaders ( const Entry values,
size_t  count 
)

Initialize the headers from an array of entries.

Parameters
valuesA pointer to the first element of the array.
countThe number of element in the array.

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