HTTP内容类型定义
更多...
#include <http_constants.hpp>
|
|
static const http_content & | HTML_TEXT () |
| | text/html
|
|
static const http_content & | XML_TEXT () |
| | text/xml
|
|
static const http_content & | CSS_TEXT () |
| | text/css
|
|
static const http_content & | PLAIN_TEXT () |
| | text/plain
|
|
static const http_content & | JSON_APP () |
| | application/json
|
|
static const http_content & | FORM_APP () |
| | application/x-www-form-urlencoded
|
|
static const http_content & | JPEG_IMG () |
| | image/jpeg
|
|
static const http_content & | PNG_IMG () |
| | image/png
|
|
static const http_content & | BMP_IMG () |
| | image/bmp
|
|
static const http_content & | WEBP_IMG () |
| | image/webp
|
|
static const http_content & | HTML_MSG () |
| | message/html
|
HTTP内容类型定义
定义了标准的HTTP Content-Type值,并提供类型判断方法。
在文件 http_constants.hpp 第 493 行定义.
◆ http_content() [1/2]
| neforce::http::http_content::http_content |
( |
http_content && | other | ) |
|
|
inlinenoexcept |
◆ http_content() [2/2]
| neforce::http::http_content::http_content |
( |
string | content | ) |
|
|
inlineexplicit |
◆ content() [1/2]
| string neforce::http::http_content::content |
( |
| ) |
&& |
|
inlinenodiscardnoexcept |
◆ content() [2/2]
| const string & neforce::http::http_content::content |
( |
| ) |
const & |
|
inlinenodiscardnoexcept |
◆ operator=() [1/2]
| http_content & neforce::http::http_content::operator= |
( |
const string & | content | ) |
|
|
inline |
◆ operator=() [2/2]
| http_content & neforce::http::http_content::operator= |
( |
http_content && | other | ) |
|
|
inlinenoexcept |
◆ to_string()
| string neforce::http::http_content::to_string |
( |
| ) |
const |
|
inlinenodiscard |
◆ with_charset()
| http_content neforce::http::http_content::with_charset |
( |
string | charset | ) |
const |
|
inlinenodiscard |
该结构体的文档由以下文件生成: