Kea  1.5.0
isc::http Namespace Reference

Classes

struct  CallSetGenericBody
 Encapsulates the boolean value indicating if the HttpResponse constructor should call its setGenericBody method during construction. 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  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 boost::shared_ptr< const HttpListenerConstHttpListenerPtr
 Pointer to the const HttpListener. More...
 
typedef boost::shared_ptr< const HttpRequestConstHttpRequestPtr
 Pointer to the const HttpRequest object. More...
 
typedef boost::shared_ptr< const HttpResponseConstHttpResponsePtr
 Pointer to the const HttpResponse object. More...
 
typedef boost::shared_ptr< const PostHttpRequestJsonConstPostHttpRequestJsonPtr
 Pointer to const PostHttpRequestJson. More...
 
typedef boost::shared_ptr< const PostHttpRequestConstPostHttpRequestPtr
 Pointer to const PostHttpRequest. More...
 
typedef asiolink::TCPAcceptor< HttpAcceptorCallbackHttpAcceptor
 Type of the TCP acceptor used in this library. More...
 
typedef boost::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< HttpConnectionHttpConnectionPtr
 Pointer to the HttpConnection. More...
 
typedef boost::shared_ptr< HttpHeaderHttpHeaderPtr
 Pointer to the HttpHeader class. More...
 
typedef boost::shared_ptr< HttpListenerHttpListenerPtr
 Pointer to the HttpListener. More...
 
typedef boost::shared_ptr< HttpRequestContextHttpRequestContextPtr
 Pointer to the HttpRequestContext. More...
 
typedef boost::shared_ptr< HttpRequestParserHttpRequestParserPtr
 Pointer to the HttpRequestParser. More...
 
typedef boost::shared_ptr< HttpRequestHttpRequestPtr
 Pointer to the HttpRequest object. More...
 
typedef boost::shared_ptr< HttpResponseContextHttpResponseContextPtr
 Pointer to the HttpResponseContext. More...
 
typedef boost::shared_ptr< HttpResponseCreatorFactoryHttpResponseCreatorFactoryPtr
 Pointer to the HttpResponseCreatorFactory. More...
 
typedef boost::shared_ptr< HttpResponseCreatorHttpResponseCreatorPtr
 Pointer to the HttpResponseCreator object. More...
 
typedef boost::shared_ptr< HttpResponseJsonHttpResponseJsonPtr
 Pointer to the HttpResponseJson object. More...
 
typedef boost::shared_ptr< HttpResponseParserHttpResponseParserPtr
 Pointer to the HttpResponseParser. More...
 
typedef boost::shared_ptr< HttpResponseHttpResponsePtr
 Pointer to the HttpResponse object. More...
 
typedef boost::shared_ptr< PostHttpRequestJsonPostHttpRequestJsonPtr
 Pointer to PostHttpRequestJson. More...
 
typedef boost::shared_ptr< PostHttpRequestPostHttpRequestPtr
 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...
 

Variables

isc::log::Logger http_logger ("http")
 Defines the logger used within libkea-http library. More...
 

Typedef Documentation

◆ ConstHttpListenerPtr

typedef boost::shared_ptr<const HttpListener> isc::http::ConstHttpListenerPtr

Pointer to the const HttpListener.

Definition at line 140 of file listener.h.

◆ ConstHttpRequestPtr

typedef boost::shared_ptr<const HttpRequest> isc::http::ConstHttpRequestPtr

Pointer to the const HttpRequest object.

Definition at line 31 of file request.h.

◆ ConstHttpResponsePtr

typedef boost::shared_ptr<const HttpResponse> isc::http::ConstHttpResponsePtr

Pointer to the const HttpResponse object.

Definition at line 84 of file response.h.

◆ ConstPostHttpRequestJsonPtr

Pointer to const PostHttpRequestJson.

Definition at line 31 of file post_request_json.h.

◆ ConstPostHttpRequestPtr

typedef boost::shared_ptr<const PostHttpRequest> isc::http::ConstPostHttpRequestPtr

Pointer to const PostHttpRequest.

Definition at line 21 of file post_request.h.

◆ HttpAcceptor

Type of the TCP acceptor used in this library.

Definition at line 22 of file http_acceptor.h.

◆ HttpAcceptorCallback

typedef boost::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 19 of file http_acceptor.h.

◆ HttpConnectionPtr

typedef boost::shared_ptr<HttpConnection> isc::http::HttpConnectionPtr

Pointer to the HttpConnection.

Definition at line 40 of file connection.h.

◆ HttpHeaderPtr

typedef boost::shared_ptr<HttpHeader> isc::http::HttpHeaderPtr

Pointer to the HttpHeader class.

Definition at line 65 of file http_header.h.

◆ HttpListenerPtr

typedef boost::shared_ptr<HttpListener> isc::http::HttpListenerPtr

Pointer to the HttpListener.

Definition at line 137 of file listener.h.

◆ HttpRequestContextPtr

Pointer to the HttpRequestContext.

Definition at line 39 of file request_context.h.

◆ HttpRequestParserPtr

Pointer to the HttpRequestParser.

Definition at line 20 of file request_parser.h.

◆ HttpRequestPtr

typedef boost::shared_ptr<HttpRequest> isc::http::HttpRequestPtr

Pointer to the HttpRequest object.

Definition at line 28 of file request.h.

◆ HttpResponseContextPtr

Pointer to the HttpResponseContext.

Definition at line 39 of file response_context.h.

◆ HttpResponseCreatorFactoryPtr

◆ HttpResponseCreatorPtr

Pointer to the HttpResponseCreator object.

Definition at line 20 of file response_creator.h.

◆ HttpResponseJsonPtr

Pointer to the HttpResponseJson object.

Definition at line 27 of file response_json.h.

◆ HttpResponseParserPtr

Pointer to the HttpResponseParser.

Definition at line 20 of file response_parser.h.

◆ HttpResponsePtr

typedef boost::shared_ptr<HttpResponse> isc::http::HttpResponsePtr

Pointer to the HttpResponse object.

Definition at line 81 of file response.h.

◆ PostHttpRequestJsonPtr

Pointer to PostHttpRequestJson.

Definition at line 29 of file post_request_json.h.

◆ PostHttpRequestPtr

typedef boost::shared_ptr<PostHttpRequest> isc::http::PostHttpRequestPtr

Pointer to PostHttpRequest.

Definition at line 19 of file post_request.h.

Enumeration Type Documentation

◆ HttpStatusCode

enum isc::http::HttpStatusCode : std::uint16_t
strong

HTTP status codes (cf RFC 2068)

Enumerator
OK 
CREATED 
ACCEPTED 
NO_CONTENT 
MULTIPLE_CHOICES 
MOVED_PERMANENTLY 
MOVED_TEMPORARILY 
NOT_MODIFIED 
BAD_REQUEST 
UNAUTHORIZED 
FORBIDDEN 
NOT_FOUND 
REQUEST_TIMEOUT 
INTERNAL_SERVER_ERROR 
NOT_IMPLEMENTED 
BAD_GATEWAY 
SERVICE_UNAVAILABLE 

Definition at line 30 of file response.h.

Variable Documentation

◆ http_logger

isc::log::Logger isc::http::http_logger

Defines the logger used within libkea-http library.

Define the loggers used within libkea-http library.

Definition at line 18 of file http_log.h.