SNode.C
Loading...
Searching...
No Matches
web::http::server::SocketContextFactory< RequestT, ResponseT > Class Template Reference

#include <SocketContextFactory.h>

Inheritance diagram for web::http::server::SocketContextFactory< RequestT, ResponseT >:
Collaboration diagram for web::http::server::SocketContextFactory< RequestT, ResponseT >:

Public Types

using Request = RequestT
 
using Response = ResponseT
 

Public Member Functions

 SocketContextFactory (const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> &onRequestReady)
 
- Public Member Functions inherited from core::socket::stream::SocketContextFactory
 SocketContextFactory (SocketContextFactory &)=delete
 
 SocketContextFactory (SocketContextFactory &&)=delete
 
SocketContextFactoryoperator= (SocketContextFactory &)=delete
 
SocketContextFactoryoperator= (SocketContextFactory &&)=delete
 

Private Member Functions

core::socket::stream::SocketContextcreate (core::socket::stream::SocketConnection *socketConnection) override
 

Private Attributes

std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onRequestReady
 

Additional Inherited Members

- Protected Types inherited from web::http::SocketContextFactory< web::http::server::SocketContext, RequestT, ResponseT >
using Request
 
using Response
 
using SocketContext
 
- Protected Member Functions inherited from web::http::SocketContextFactory< web::http::server::SocketContext, RequestT, ResponseT >
 SocketContextFactory ()=default
 
 ~SocketContextFactory () override=default
 
- Protected Member Functions inherited from core::socket::stream::SocketContextFactory
 SocketContextFactory ()=default
 

Detailed Description

template<typename RequestT, typename ResponseT>
class web::http::server::SocketContextFactory< RequestT, ResponseT >

Definition at line 37 of file SocketContextFactory.h.

Member Typedef Documentation

◆ Request

template<typename RequestT , typename ResponseT >
using web::http::server::SocketContextFactory< RequestT, ResponseT >::Request = RequestT

Definition at line 39 of file SocketContextFactory.h.

◆ Response

template<typename RequestT , typename ResponseT >
using web::http::server::SocketContextFactory< RequestT, ResponseT >::Response = ResponseT

Definition at line 40 of file SocketContextFactory.h.

Constructor & Destructor Documentation

◆ SocketContextFactory()

template<typename RequestT , typename ResponseT >
web::http::server::SocketContextFactory< RequestT, ResponseT >::SocketContextFactory ( const std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> & onRequestReady)
inlineexplicit

Definition at line 42 of file SocketContextFactory.h.

45 }
std::function< void(const std::shared_ptr< Request > &, const std::shared_ptr< Response > &)> onRequestReady

References web::http::server::SocketContextFactory< RequestT, ResponseT >::onRequestReady.

Member Function Documentation

◆ create()

template<typename RequestT , typename ResponseT >
core::socket::stream::SocketContext * web::http::server::SocketContextFactory< RequestT, ResponseT >::create ( core::socket::stream::SocketConnection * socketConnection)
inlineoverrideprivatevirtual

Member Data Documentation

◆ onRequestReady

template<typename RequestT , typename ResponseT >
std::function<void(const std::shared_ptr<Request>&, const std::shared_ptr<Response>&)> web::http::server::SocketContextFactory< RequestT, ResponseT >::onRequestReady
private

The documentation for this class was generated from the following file: