NexusForce 1.0.0
A Modern C++ Library with extended functionality, web components, and utility libraries
载入中...
搜索中...
未找到
http_content结构体 参考

HTTP内容类型定义 更多...

#include <http_constants.hpp>

类 http_content 继承关系图:
[图例]

Public 成员函数

 http_content (http_content &&other) noexcept
 移动构造函数
http_contentoperator= (http_content &&other) noexcept
 移动赋值运算符
 http_content (const string &content)
 字符串构造函数
http_contentoperator= (const string &content)
 字符串赋值运算符
NEFORCE_NODISCARD const stringcontent () const &noexcept
 获取左值内容
NEFORCE_NODISCARD string content () &&noexcept
 获取右值内容
NEFORCE_NODISCARD string to_string () const
 转换为字符串
Public 成员函数 继承自 istringify< http_content >
NEFORCE_NODISCARD NEFORCE_CONSTEXPR20 string to_string () const
 转换为字符串

静态 Public 成员函数

static const http_contentHTML_TEXT ()
 text/html
static const http_contentXML_TEXT ()
 text/xml
static const http_contentCSS_TEXT ()
 text/css
static const http_contentPLAIN_TEXT ()
 text/plain
static const http_contentJSON_APP ()
 application/json
static const http_contentFORM_APP ()
 application/x-www-form-urlencoded
static const http_contentJPEG_IMG ()
 image/jpeg
static const http_contentPNG_IMG ()
 image/png
static const http_contentBMP_IMG ()
 image/bmp
static const http_contentWEBP_IMG ()
 image/webp
static const http_contentHTML_MSG ()
 message/html

详细描述

HTTP内容类型定义

定义了标准的HTTP Content-Type值,并提供类型判断方法。

在文件 http_constants.hpp360 行定义.

构造及析构函数说明

◆ http_content() [1/2]

http_content::http_content ( http_content && other)
inlinenoexcept

移动构造函数

参数
other源对象

在文件 http_constants.hpp373 行定义.

◆ http_content() [2/2]

http_content::http_content ( const string & content)
inlineexplicit

字符串构造函数

参数
content内容类型字符串

在文件 http_constants.hpp393 行定义.

引用了 content().

成员函数说明

◆ content() [1/2]

NEFORCE_NODISCARD string http_content::content ( ) &&
inlinenoexcept

获取右值内容

返回
内容类型字符串

在文件 http_constants.hpp454 行定义.

引用了 move().

◆ content() [2/2]

NEFORCE_NODISCARD const string & http_content::content ( ) const &
inlinenoexcept

获取左值内容

返回
内容类型字符串

在文件 http_constants.hpp448 行定义.

被这些函数引用 http_content() , 以及 operator=().

◆ operator=() [1/2]

http_content & http_content::operator= ( const string & content)
inline

字符串赋值运算符

参数
content内容类型字符串
返回
自身引用

在文件 http_constants.hpp401 行定义.

引用了 content().

◆ operator=() [2/2]

http_content & http_content::operator= ( http_content && other)
inlinenoexcept

移动赋值运算符

参数
other源对象
返回
自身引用

在文件 http_constants.hpp381 行定义.

引用了 addressof() , 以及 move().

◆ to_string()

NEFORCE_NODISCARD string http_content::to_string ( ) const
inline

转换为字符串

返回
内容类型字符串

在文件 http_constants.hpp460 行定义.

被这些函数引用 http_server_response::http_server_response().


该结构体的文档由以下文件生成: