|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Represents an HTTP cookie. More...
#include <http_types.h>

Public Member Functions | |
| auto | to_header_value () const -> std::string |
| Convert cookie to Set-Cookie header value. | |
Public Attributes | |
| std::string | name |
| std::string | value |
| std::string | path |
| std::string | domain |
| std::string | expires |
| int | max_age = -1 |
| bool | secure = false |
| bool | http_only = false |
| std::string | same_site |
Represents an HTTP cookie.
Definition at line 62 of file http_types.h.
| auto kcenon::network::internal::cookie::to_header_value | ( | ) | const -> std::string |
Convert cookie to Set-Cookie header value.
Definition at line 237 of file http_types.cpp.
References domain, expires, http_only, max_age, name, path, same_site, secure, and value.
Referenced by kcenon::network::internal::http_parser::serialize_chunked_response(), and kcenon::network::internal::http_parser::serialize_response().

| std::string kcenon::network::internal::cookie::domain |
Definition at line 67 of file http_types.h.
Referenced by to_header_value().
| std::string kcenon::network::internal::cookie::expires |
Definition at line 68 of file http_types.h.
Referenced by to_header_value().
| bool kcenon::network::internal::cookie::http_only = false |
Definition at line 71 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().
| int kcenon::network::internal::cookie::max_age = -1 |
Definition at line 69 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().
| std::string kcenon::network::internal::cookie::name |
Definition at line 64 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().
| std::string kcenon::network::internal::cookie::path |
Definition at line 66 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().
| std::string kcenon::network::internal::cookie::same_site |
Definition at line 72 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().
| bool kcenon::network::internal::cookie::secure = false |
Definition at line 70 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().
| std::string kcenon::network::internal::cookie::value |
Definition at line 65 of file http_types.h.
Referenced by kcenon::network::internal::http_response::set_cookie(), and to_header_value().