| IOLink 1.11.0

Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
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.
| 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.

## 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

  values | A pointer to the first element of the array.
  count | The number of element in the array.

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

- iolink/public/include/iolink/storage/HTTPHeaders.h