|
join 1.0
lightweight network framework library
|
HTTP protocol class (HTTP over TCP). More...
#include <http_protocol.hpp>
Public Types | |
| using | Endpoint = BasicInternetEndpoint<Http> |
| using | Socket = BasicStreamSocket<Http> |
| using | Stream = BasicSocketStream<Http> |
| using | Acceptor = BasicStreamAcceptor<Http> |
| using | Client = BasicHttpClient<Http> |
| using | Worker = BasicHttpWorker<Http> |
| using | Server = BasicHttpServer<Http> |
Public Member Functions | |
| constexpr | Http (int family=AF_INET) noexcept |
| construct the HTTP protocol instance. | |
| constexpr int | family () const noexcept |
| get the protocol IP address family. | |
| constexpr int | type () const noexcept |
| get the protocol communication semantic. | |
| constexpr int | protocol () const noexcept |
| get the protocol type. | |
Static Public Member Functions | |
| static Http & | v4 () noexcept |
| get protocol suitable for IPv4 address family. | |
| static Http & | v6 () noexcept |
| get protocol suitable for IPv6 address family. | |
Static Public Attributes | |
| static constexpr uint16_t | defaultPort = 80 |
| default HTTP port. | |
HTTP protocol class (HTTP over TCP).
| using join::Http::Acceptor = BasicStreamAcceptor<Http> |
| using join::Http::Client = BasicHttpClient<Http> |
| using join::Http::Server = BasicHttpServer<Http> |
| using join::Http::Socket = BasicStreamSocket<Http> |
| using join::Http::Stream = BasicSocketStream<Http> |
| using join::Http::Worker = BasicHttpWorker<Http> |
|
inlineexplicitconstexprnoexcept |
construct the HTTP protocol instance.
| family | IP address family. |
|
inlineconstexprnoexcept |
get the protocol IP address family.
|
inlineconstexprnoexcept |
get the protocol type.
|
inlineconstexprnoexcept |
get the protocol communication semantic.
|
inlinestaticnoexcept |
get protocol suitable for IPv4 address family.
|
inlinestaticnoexcept |
get protocol suitable for IPv6 address family.
|
staticconstexpr |
default HTTP port.