![]() |
Kea
1.9.9-git
|
Classes | |
| struct | BasicAuthHttpHeaderContext |
| Represents basic HTTP authentication header. More... | |
| class | BasicHttpAuth |
| Represents a basic HTTP authentication. More... | |
| class | BasicHttpAuthClient |
| Basic HTTP authentication client configuration. More... | |
| class | BasicHttpAuthConfig |
| Basic HTTP authentication configuration. More... | |
| struct | CallSetGenericBody |
Encapsulates the boolean value indicating if the HttpResponse constructor should call its setGenericBody method during construction. More... | |
| class | HostHttpHeader |
| Represents HTTP Host header. More... | |
| class | HttpAuthConfig |
| Base type of HTTP authentication configuration. More... | |
| class | HttpClient |
| HTTP client class. More... | |
| class | HttpClientError |
| A generic error raised by the HttpClient class. More... | |
| class | HttpClientImpl |
| HttpClient implementation. More... | |
| class | HttpConnection |
| Accepts and handles a single HTTP connection. More... | |
| class | HttpConnectionError |
| Generic error reported within HttpConnection class. More... | |
| class | HttpConnectionPool |
| Pool of active HTTP connections. More... | |
| class | HttpDateTime |
| This class parses and generates time values used in HTTP. More... | |
| class | HttpHeader |
| Represents HTTP header including a header name and value. More... | |
| struct | HttpHeaderContext |
| HTTP header context. More... | |
| class | HttpListener |
| HTTP listener. More... | |
| class | HttpListenerError |
| A generic error raised by the HttpListener class. More... | |
| class | HttpListenerImpl |
| Implementation of the HttpListener. More... | |
| class | HttpMessage |
| Base class for HttpRequest and HttpResponse. More... | |
| class | HttpMessageError |
| Generic exception thrown by HttpMessage class. More... | |
| class | HttpMessageNonExistingHeader |
| Exception thrown when attempt is made to retrieve a non-existing header. More... | |
| class | HttpMessageParserBase |
| Base class for the HTTP message parsers. More... | |
| class | HttpParseError |
| Exception thrown when an error during parsing HTTP message has occurred. More... | |
| class | HttpRequest |
| Represents HTTP request message. More... | |
| struct | HttpRequestContext |
| HTTP request context. More... | |
| class | HttpRequestError |
| Generic exception thrown by HttpRequest class. More... | |
| class | HttpRequestJsonError |
| Exception thrown when body of the HTTP message is not JSON. More... | |
| class | HttpRequestParser |
| A generic parser for HTTP requests. More... | |
| class | HttpResponse |
| Represents HTTP response message. More... | |
| struct | HttpResponseContext |
| HTTP response context. More... | |
| class | HttpResponseCreator |
| Specifies an interface for classes creating HTTP responses from HTTP requests. More... | |
| class | HttpResponseCreatorFactory |
| Specifies the interface for implementing custom factory classes used to create instances of HttpResponseCreator. More... | |
| class | HttpResponseError |
| Generic exception thrown by HttpResponse class. More... | |
| class | HttpResponseJson |
| Represents HTTP response with JSON content. More... | |
| class | HttpResponseJsonError |
| Exception thrown when body of the HTTP message is not JSON. More... | |
| class | HttpResponseParser |
| A generic parser for HTTP responses. More... | |
| class | HttpThreadPool |
| Implements a pausable pool of IOService driven threads. More... | |
| class | HttpTimeConversionError |
| Exception thrown when there is an error during time conversion. More... | |
| struct | HttpVersion |
| HTTP protocol version. More... | |
| class | PostHttpRequest |
| Represents HTTP POST request. More... | |
| class | PostHttpRequestJson |
| Represents HTTP POST request with JSON body. More... | |
| class | Url |
| Represents an URL. More... | |
Typedefs | |
| typedef std::list< BasicHttpAuthClient > | BasicHttpAuthClientList |
| Type of basic HTTP authentication client configuration list. More... | |
| typedef boost::shared_ptr< BasicHttpAuthConfig > | BasicHttpAuthConfigPtr |
| Type of shared pointers to basic HTTP authentication configuration. More... | |
| typedef std::unordered_map< std::string, std::string > | BasicHttpAuthMap |
| Type of basic HTTP authentication credential and user id map, e.g. More... | |
| typedef boost::shared_ptr< BasicHttpAuth > | BasicHttpAuthPtr |
| Type of pointers to basic HTTP authentication objects. More... | |
| typedef boost::shared_ptr< const HttpListener > | ConstHttpListenerPtr |
| Pointer to the const HttpListener. More... | |
| typedef boost::shared_ptr< const HttpResponse > | ConstHttpResponsePtr |
| Pointer to the const HttpResponse object. More... | |
| typedef boost::shared_ptr< const PostHttpRequest > | ConstPostHttpRequestPtr |
| Pointer to const PostHttpRequest. More... | |
| typedef boost::shared_ptr< HostHttpHeader > | HostHttpHeaderPtr |
| Pointer to the HTTP host header. More... | |
| typedef asiolink::TCPAcceptor< HttpAcceptorCallback > | HttpAcceptor |
| Type of the TCP acceptor used in this library. More... | |
| typedef std::function< void(const boost::system::error_code &)> | HttpAcceptorCallback |
| Type of the callback for the TCP acceptor used in this library. More... | |
| typedef boost::shared_ptr< HttpAcceptor > | HttpAcceptorPtr |
| Type of shared pointer to TCP acceptors. More... | |
| typedef boost::shared_ptr< HttpAuthConfig > | HttpAuthConfigPtr |
| Type of shared pointers to HTTP authentication configuration. More... | |
| typedef boost::shared_ptr< HttpClient > | HttpClientPtr |
| Defines a pointer to an HttpClient instance. More... | |
| typedef boost::shared_ptr< HttpConnection > | HttpConnectionPtr |
| Pointer to the HttpConnection. More... | |
| typedef boost::shared_ptr< HttpHeader > | HttpHeaderPtr |
Pointer to the HttpHeader class. More... | |
| typedef boost::shared_ptr< HttpListener > | HttpListenerPtr |
| Pointer to the HttpListener. More... | |
| typedef boost::shared_ptr< HttpRequestContext > | HttpRequestContextPtr |
| Pointer to the HttpRequestContext. More... | |
| typedef boost::shared_ptr< HttpRequestParser > | HttpRequestParserPtr |
| Pointer to the HttpRequestParser. More... | |
| typedef boost::shared_ptr< HttpRequest > | HttpRequestPtr |
| Pointer to the HttpRequest object. More... | |
| typedef boost::shared_ptr< HttpResponseContext > | HttpResponseContextPtr |
| Pointer to the HttpResponseContext. More... | |
| typedef boost::shared_ptr< HttpResponseCreatorFactory > | HttpResponseCreatorFactoryPtr |
| Pointer to the HttpResponseCreatorFactory. More... | |
| typedef boost::shared_ptr< HttpResponseCreator > | HttpResponseCreatorPtr |
| Pointer to the HttpResponseCreator object. More... | |
| typedef boost::shared_ptr< HttpResponseJson > | HttpResponseJsonPtr |
| Pointer to the HttpResponseJson object. More... | |
| typedef boost::shared_ptr< HttpResponseParser > | HttpResponseParserPtr |
| Pointer to the HttpResponseParser. More... | |
| typedef boost::shared_ptr< HttpResponse > | HttpResponsePtr |
| Pointer to the HttpResponse object. More... | |
| typedef asiolink::TLSAcceptor< HttpAcceptorCallback > | HttpsAcceptor |
| Type of the TLS acceptor used in this library. More... | |
| typedef boost::shared_ptr< HttpsAcceptor > | HttpsAcceptorPtr |
| Type of shared pointer to TLS acceptors. More... | |
| typedef boost::shared_ptr< HttpThreadPool > | HttpThreadPoolPtr |
| Defines a pointer to a thread pool. More... | |
| typedef boost::shared_ptr< PostHttpRequestJson > | PostHttpRequestJsonPtr |
| Pointer to PostHttpRequestJson. More... | |
| typedef boost::shared_ptr< PostHttpRequest > | PostHttpRequestPtr |
| Pointer to PostHttpRequest. More... | |
Enumerations | |
| enum | HttpStatusCode : std::uint16_t { HttpStatusCode::OK = 200, HttpStatusCode::CREATED = 201, HttpStatusCode::ACCEPTED = 202, HttpStatusCode::NO_CONTENT = 204, HttpStatusCode::MULTIPLE_CHOICES = 300, HttpStatusCode::MOVED_PERMANENTLY = 301, HttpStatusCode::MOVED_TEMPORARILY = 302, HttpStatusCode::NOT_MODIFIED = 304, HttpStatusCode::BAD_REQUEST = 400, HttpStatusCode::UNAUTHORIZED = 401, HttpStatusCode::FORBIDDEN = 403, HttpStatusCode::NOT_FOUND = 404, HttpStatusCode::REQUEST_TIMEOUT = 408, HttpStatusCode::INTERNAL_SERVER_ERROR = 500, HttpStatusCode::NOT_IMPLEMENTED = 501, HttpStatusCode::BAD_GATEWAY = 502, HttpStatusCode::SERVICE_UNAVAILABLE = 503 } |
| HTTP status codes (cf RFC 2068) More... | |
| typedef std::list<BasicHttpAuthClient> isc::http::BasicHttpAuthClientList |
Type of basic HTTP authentication client configuration list.
Definition at line 64 of file basic_auth_config.h.
| typedef boost::shared_ptr<BasicHttpAuthConfig> isc::http::BasicHttpAuthConfigPtr |
Type of shared pointers to basic HTTP authentication configuration.
Definition at line 136 of file basic_auth_config.h.
| typedef std::unordered_map<std::string, std::string> isc::http::BasicHttpAuthMap |
Type of basic HTTP authentication credential and user id map, e.g.
map["am9obmRvZTpzZWNyZXQx"] = "johndoe".
The map is used to verify a received credential: if it is not in it the authentication fails, if it is in it the user id is logged.
Definition at line 23 of file basic_auth_config.h.
| typedef boost::shared_ptr<BasicHttpAuth> isc::http::BasicHttpAuthPtr |
Type of pointers to basic HTTP authentication objects.
Definition at line 70 of file basic_auth.h.
| typedef boost::shared_ptr<const HttpListener> isc::http::ConstHttpListenerPtr |
Pointer to the const HttpListener.
Definition at line 142 of file listener.h.
| typedef boost::shared_ptr<const HttpResponse> isc::http::ConstHttpResponsePtr |
Pointer to the const HttpResponse object.
Definition at line 84 of file response.h.
| typedef boost::shared_ptr<const PostHttpRequest> isc::http::ConstPostHttpRequestPtr |
Pointer to const PostHttpRequest.
Definition at line 21 of file post_request.h.
| typedef boost::shared_ptr<HostHttpHeader> isc::http::HostHttpHeaderPtr |
Pointer to the HTTP host header.
Definition at line 81 of file http_header.h.
Type of the TCP acceptor used in this library.
Definition at line 23 of file http_acceptor.h.
| typedef std::function<void(const boost::system::error_code&)> isc::http::HttpAcceptorCallback |
Type of the callback for the TCP acceptor used in this library.
Definition at line 20 of file http_acceptor.h.
| typedef boost::shared_ptr<HttpAcceptor> isc::http::HttpAcceptorPtr |
Type of shared pointer to TCP acceptors.
Definition at line 31 of file http_acceptor.h.
| typedef boost::shared_ptr<HttpAuthConfig> isc::http::HttpAuthConfigPtr |
Type of shared pointers to HTTP authentication configuration.
Definition at line 79 of file auth_config.h.
| typedef boost::shared_ptr<HttpClient> isc::http::HttpClientPtr |
Defines a pointer to an HttpClient instance.
| typedef boost::shared_ptr<HttpConnection> isc::http::HttpConnectionPtr |
Pointer to the HttpConnection.
Definition at line 38 of file connection.h.
| typedef boost::shared_ptr<HttpHeader> isc::http::HttpHeaderPtr |
Pointer to the HttpHeader class.
Definition at line 65 of file http_header.h.
| typedef boost::shared_ptr<HttpListener> isc::http::HttpListenerPtr |
Pointer to the HttpListener.
Definition at line 139 of file listener.h.
| typedef boost::shared_ptr<HttpRequestContext> isc::http::HttpRequestContextPtr |
Pointer to the HttpRequestContext.
Definition at line 39 of file request_context.h.
| typedef boost::shared_ptr<HttpRequestParser> isc::http::HttpRequestParserPtr |
Pointer to the HttpRequestParser.
Definition at line 17 of file request_parser.h.
| typedef boost::shared_ptr<HttpRequest> isc::http::HttpRequestPtr |
Pointer to the HttpRequest object.
| typedef boost::shared_ptr<HttpResponseContext> isc::http::HttpResponseContextPtr |
Pointer to the HttpResponseContext.
Definition at line 39 of file response_context.h.
| typedef boost::shared_ptr<HttpResponseCreatorFactory> isc::http::HttpResponseCreatorFactoryPtr |
Pointer to the HttpResponseCreatorFactory.
Definition at line 54 of file response_creator_factory.h.
| typedef boost::shared_ptr<HttpResponseCreator> isc::http::HttpResponseCreatorPtr |
Pointer to the HttpResponseCreator object.
Definition at line 17 of file response_creator.h.
| typedef boost::shared_ptr<HttpResponseJson> isc::http::HttpResponseJsonPtr |
Pointer to the HttpResponseJson object.
Definition at line 24 of file response_json.h.
| typedef boost::shared_ptr<HttpResponseParser> isc::http::HttpResponseParserPtr |
Pointer to the HttpResponseParser.
Definition at line 17 of file response_parser.h.
| typedef boost::shared_ptr<HttpResponse> isc::http::HttpResponsePtr |
Pointer to the HttpResponse object.
Definition at line 78 of file response.h.
Type of the TLS acceptor used in this library.
Definition at line 28 of file http_acceptor.h.
| typedef boost::shared_ptr<HttpsAcceptor> isc::http::HttpsAcceptorPtr |
Type of shared pointer to TLS acceptors.
Definition at line 34 of file http_acceptor.h.
| typedef boost::shared_ptr<HttpThreadPool> isc::http::HttpThreadPoolPtr |
Defines a pointer to a thread pool.
Definition at line 224 of file http_thread_pool.h.
| typedef boost::shared_ptr<PostHttpRequestJson> isc::http::PostHttpRequestJsonPtr |
Pointer to PostHttpRequestJson.
Definition at line 26 of file post_request_json.h.
| typedef boost::shared_ptr<PostHttpRequest> isc::http::PostHttpRequestPtr |
Pointer to PostHttpRequest.
Definition at line 16 of file post_request.h.
|
strong |
HTTP status codes (cf RFC 2068)
Definition at line 30 of file response.h.
| isc::log::Logger isc::http::auth_logger |
Defines the logger used by the HTTP authentication.
Define the HTTP authentication logger.
Definition at line 18 of file auth_log.h.
Referenced by isc::http::BasicHttpAuthConfig::checkAuth().
| const isc::log::MessageID isc::http::HTTP_BAD_CLIENT_REQUEST_RECEIVED = "HTTP_BAD_CLIENT_REQUEST_RECEIVED" |
Definition at line 12 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTP_BAD_CLIENT_REQUEST_RECEIVED_DETAILS = "HTTP_BAD_CLIENT_REQUEST_RECEIVED_DETAILS" |
Definition at line 13 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTP_BAD_SERVER_RESPONSE_RECEIVED = "HTTP_BAD_SERVER_RESPONSE_RECEIVED" |
Definition at line 14 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_BAD_SERVER_RESPONSE_RECEIVED_DETAILS = "HTTP_BAD_SERVER_RESPONSE_RECEIVED_DETAILS" |
Definition at line 15 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_CLIENT_MT_STARTED = "HTTP_CLIENT_MT_STARTED" |
Definition at line 16 of file http_messages.h.
Referenced by isc::http::HttpClientImpl::HttpClientImpl().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_AUTHORIZED = "HTTP_CLIENT_REQUEST_AUTHORIZED" |
Definition at line 11 of file auth_messages.h.
Referenced by isc::http::BasicHttpAuthConfig::checkAuth().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER = "HTTP_CLIENT_REQUEST_BAD_AUTH_HEADER" |
Definition at line 12 of file auth_messages.h.
Referenced by isc::http::BasicHttpAuthConfig::checkAuth().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_NO_AUTH_HEADER = "HTTP_CLIENT_REQUEST_NO_AUTH_HEADER" |
Definition at line 14 of file auth_messages.h.
Referenced by isc::http::BasicHttpAuthConfig::checkAuth().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_NOT_AUTHORIZED = "HTTP_CLIENT_REQUEST_NOT_AUTHORIZED" |
Definition at line 13 of file auth_messages.h.
Referenced by isc::http::BasicHttpAuthConfig::checkAuth().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_RECEIVED = "HTTP_CLIENT_REQUEST_RECEIVED" |
Definition at line 17 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_RECEIVED_DETAILS = "HTTP_CLIENT_REQUEST_RECEIVED_DETAILS" |
Definition at line 18 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_SEND = "HTTP_CLIENT_REQUEST_SEND" |
Definition at line 19 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_SEND_DETAILS = "HTTP_CLIENT_REQUEST_SEND_DETAILS" |
Definition at line 20 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_CLIENT_REQUEST_TIMEOUT_OCCURRED = "HTTP_CLIENT_REQUEST_TIMEOUT_OCCURRED" |
Definition at line 21 of file http_messages.h.
Referenced by isc::http::HttpConnection::requestTimeoutCallback().
| const isc::log::MessageID isc::http::HTTP_CONNECTION_CLOSE_CALLBACK_FAILED = "HTTP_CONNECTION_CLOSE_CALLBACK_FAILED" |
Definition at line 22 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_CONNECTION_HANDSHAKE_FAILED = "HTTP_CONNECTION_HANDSHAKE_FAILED" |
Definition at line 23 of file http_messages.h.
Referenced by isc::http::HttpConnection::handshakeCallback().
| const isc::log::MessageID isc::http::HTTP_CONNECTION_HANDSHAKE_START = "HTTP_CONNECTION_HANDSHAKE_START" |
Definition at line 24 of file http_messages.h.
Referenced by isc::http::HttpConnection::acceptorCallback().
| const isc::log::MessageID isc::http::HTTP_CONNECTION_SHUTDOWN = "HTTP_CONNECTION_SHUTDOWN" |
Definition at line 25 of file http_messages.h.
Referenced by isc::http::HttpConnection::shutdownConnection().
| const isc::log::MessageID isc::http::HTTP_CONNECTION_SHUTDOWN_FAILED = "HTTP_CONNECTION_SHUTDOWN_FAILED" |
Definition at line 26 of file http_messages.h.
Referenced by isc::http::HttpConnection::shutdownConnection().
| const isc::log::MessageID isc::http::HTTP_CONNECTION_STOP = "HTTP_CONNECTION_STOP" |
Definition at line 27 of file http_messages.h.
Referenced by isc::http::HttpConnection::stopThisConnection().
| const isc::log::MessageID isc::http::HTTP_CONNECTION_STOP_FAILED = "HTTP_CONNECTION_STOP_FAILED" |
Definition at line 28 of file http_messages.h.
Referenced by isc::http::HttpConnection::stopThisConnection().
| const isc::log::MessageID isc::http::HTTP_DATA_RECEIVED = "HTTP_DATA_RECEIVED" |
Definition at line 29 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTP_IDLE_CONNECTION_TIMEOUT_OCCURRED = "HTTP_IDLE_CONNECTION_TIMEOUT_OCCURRED" |
Definition at line 30 of file http_messages.h.
Referenced by isc::http::HttpConnection::idleTimeoutCallback().
| isc::log::Logger isc::http::http_logger |
Defines the logger used within libkea-http library.
Define the logger used within libkea-http library.
Definition at line 18 of file http_log.h.
Referenced by isc::http::HttpConnection::acceptorCallback(), isc::http::HttpConnection::handshakeCallback(), isc::http::HttpClientImpl::HttpClientImpl(), isc::http::HttpConnection::idleTimeoutCallback(), isc::http::HttpConnection::requestTimeoutCallback(), isc::http::HttpConnection::shutdownConnection(), isc::http::HttpConnection::socketReadCallback(), and isc::http::HttpConnection::stopThisConnection().
| const isc::log::MessageID isc::http::HTTP_PREMATURE_CONNECTION_TIMEOUT_OCCURRED = "HTTP_PREMATURE_CONNECTION_TIMEOUT_OCCURRED" |
Definition at line 31 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_REQUEST_RECEIVE_START = "HTTP_REQUEST_RECEIVE_START" |
Definition at line 32 of file http_messages.h.
Referenced by isc::http::HttpConnection::acceptorCallback().
| const isc::log::MessageID isc::http::HTTP_SERVER_RESPONSE_RECEIVED = "HTTP_SERVER_RESPONSE_RECEIVED" |
Definition at line 33 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_SERVER_RESPONSE_RECEIVED_DETAILS = "HTTP_SERVER_RESPONSE_RECEIVED_DETAILS" |
Definition at line 34 of file http_messages.h.
| const isc::log::MessageID isc::http::HTTP_SERVER_RESPONSE_SEND = "HTTP_SERVER_RESPONSE_SEND" |
Definition at line 35 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTP_SERVER_RESPONSE_SEND_DETAILS = "HTTP_SERVER_RESPONSE_SEND_DETAILS" |
Definition at line 36 of file http_messages.h.
Referenced by isc::http::HttpConnection::socketReadCallback().
| const isc::log::MessageID isc::http::HTTPS_REQUEST_RECEIVE_START = "HTTPS_REQUEST_RECEIVE_START" |
Definition at line 11 of file http_messages.h.
Referenced by isc::http::HttpConnection::handshakeCallback().