IOLink IOL_v1.8.0_release
|
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. | |
HTTPHeaders (std::initializer_list< Entry > init) | |
Initialize headers from an initializer list. | |
HTTPHeaders (const HTTPHeaders &other) | |
HTTPHeaders & | operator= (const HTTPHeaders &other) |
HTTPHeaders (HTTPHeaders &&other) noexcept | |
HTTPHeaders & | operator= (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. | |
A class used to pass HTTP headers as input of factories methods.
iolink::HTTPHeaders::HTTPHeaders | ( | const Entry * | values, |
size_t | count | ||
) |
Initialize the headers from an array of entries.
values | A pointer to the first element of the array. |
count | The number of element in the array. |