ゴミ箱
|
#include <typed_headers.hpp>
Public Member Functions | |
ContentType (const std::string &type) | |
ContentType (const char *type) | |
boost::beast::string_view | name () const override |
std::string | value () const override |
Static Public Member Functions | |
static ContentType | json () |
Creates ContentType for JSON. More... | |
static ContentType | plain_text () |
Creates ContentType for plain text. More... | |
static ContentType | html () |
Creates ContentType for HTML. More... | |
static ContentType | form_url_enc () |
Creates ContentType for web forms content. More... | |
static ContentType | jpeg () |
Creates ContentType for JPEG. More... | |
static ContentType | png () |
Creates ContentType for PNG. More... | |
static ContentType | octet_stream () |
Creates ContentType for octet stream. More... | |
Public Attributes | |
std::string | type |
ContentType's text. More... | |
Content-Type header, defined in RFC7231.
|
explicit |
Creates ContentType instance from raw string.
type | ContentType's string. |
|
explicit |
|
static |
Creates ContentType for web forms content.
|
static |
Creates ContentType for HTML.
|
static |
Creates ContentType for JPEG.
|
static |
Creates ContentType for JSON.
|
overridevirtual |
Implements http::header::TypedHeader.
|
static |
Creates ContentType for octet stream.
|
static |
Creates ContentType for plain text.
|
static |
Creates ContentType for PNG.
|
overridevirtual |
Implements http::header::TypedHeader.
std::string http::header::ContentType::type |
ContentType's text.