RESTinio
|
A single header field. More...
#include <http_headers.hpp>
Public Member Functions | |
http_header_field_t () | |
http_header_field_t (std::string name, std::string value) | |
http_header_field_t (string_view_t name, string_view_t value) | |
http_header_field_t (http_field_t field_id, std::string value) | |
http_header_field_t (http_field_t field_id, string_view_t value) | |
const std::string & | name () const noexcept |
const std::string & | value () const noexcept |
http_field_t | field_id () const noexcept |
void | name (std::string n) |
void | value (std::string v) |
void | append_value (string_view_t v) |
void | field_id (http_field_t field_id) |
Private Attributes | |
std::string | m_name |
std::string | m_value |
http_field_t | m_field_id |
A single header field.
Fields m_name and m_field_id are kind of having the same meaning, and m_name field seems like can be omitted, but for the cases of custom header fields it is important to rely on the name only. And as the names of almoust all speified fields fits in SSO it doesn't involve much overhead on standard fields.
Definition at line 583 of file http_headers.hpp.
|
inline |
Definition at line 586 of file http_headers.hpp.
|
inline |
Definition at line 590 of file http_headers.hpp.
|
inline |
Definition at line 598 of file http_headers.hpp.
|
inline |
Definition at line 606 of file http_headers.hpp.
|
inline |
Definition at line 614 of file http_headers.hpp.
|
inline |
Definition at line 640 of file http_headers.hpp.
|
inlinenoexcept |
Definition at line 624 of file http_headers.hpp.
|
inline |
Definition at line 646 of file http_headers.hpp.
|
inlinenoexcept |
Definition at line 622 of file http_headers.hpp.
|
inline |
Definition at line 627 of file http_headers.hpp.
|
inlinenoexcept |
Definition at line 623 of file http_headers.hpp.
|
inline |
Definition at line 634 of file http_headers.hpp.
|
private |
Definition at line 655 of file http_headers.hpp.
|
private |
Definition at line 653 of file http_headers.hpp.
|
private |
Definition at line 654 of file http_headers.hpp.