Sese Framework
x.y.z
A cross-platform framework
|
响应头类 更多...
#include <ResponseHeader.h>
Public 类型 | |
using | Ptr = std::unique_ptr<ResponseHeader> |
Public 类型 继承自 sese::net::http::Header | |
using | Ptr = std::unique_ptr<Header> |
using | KeyValueType = std::pair<std::string, std::string> |
Public 成员函数 | |
ResponseHeader ()=default | |
ResponseHeader (const std::initializer_list< KeyValueType > &initializer_list) | |
void | setCode (uint16_t response_code) noexcept |
uint16_t | getCode () const noexcept |
HttpVersion | getVersion () const |
void | setVersion (HttpVersion new_version) |
Public 成员函数 继承自 sese::net::http::Header | |
Header ()=default | |
Header (const std::initializer_list< KeyValueType > &initializer_list) noexcept | |
virtual | ~Header ()=default |
void | set (const std::string &key, const std::string &value) noexcept |
const std::string & | get (const std::string &key, const std::string &default_value) noexcept |
std::map< std::string, std::string >::iterator | begin () noexcept |
std::map< std::string, std::string >::iterator | end () noexcept |
auto | find (const std::string &key) noexcept |
void | clear () |
bool | empty () const |
size_t | size () const |
bool | exist (const std::string &key) |
const std::string & | get (const std::string &key) |
const CookieMap::Ptr & | getCookies () const |
void | setCookies (const CookieMap::Ptr &cookies) |
Cookie::Ptr | getCookie (const std::string &name) const |
void | setCookie (const Cookie::Ptr &cookie) |
Protected 属性 | |
uint16_t | statusCode = 200 |
HttpVersion | version = HttpVersion::VERSION_1_1 |
Protected 属性 继承自 sese::net::http::Header | |
StrCaseMap< std::string > | headers |
CookieMap::Ptr | cookies = nullptr |
响应头类
using sese::net::http::ResponseHeader::Ptr = std::unique_ptr<ResponseHeader> |
|
default |
|
inline |
|
inlinenodiscardnoexcept |
引用了 statusCode.
|
inlinenodiscard |
引用了 version.
|
inlinenoexcept |
引用了 statusCode.
|
inline |
引用了 version.
|
protected |
|
protected |
被这些函数引用 getVersion() , 以及 setVersion().