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

#include <SocketContextFactory.h>

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

Public Types

using Request = RequestT
 
using Response = ResponseT
 

Public Member Functions

 SocketContextFactory (const std::function< void(const std::shared_ptr< Request > &)> &onRequestBegin, const std::function< void(const std::shared_ptr< Request > &)> &onRequestEnd, const std::function< net::config::ConfigInstance &()> &getConfigInstance)
 
void setPipelinedRequests (bool pipelinedRequests)
 
- 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 > &)> onRequestBegin
 
std::function< void(const std::shared_ptr< Request > &)> onRequestEnd
 
ConfigHTTP configHttp
 

Additional Inherited Members

- Protected Types inherited from web::http::SocketContextFactory< web::http::client::SocketContext, RequestT, ResponseT >
using Request
 
using Response
 
using SocketContext
 
- Protected Member Functions inherited from web::http::SocketContextFactory< web::http::client::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::client::SocketContextFactory< RequestT, ResponseT >

Definition at line 38 of file SocketContextFactory.h.

Member Typedef Documentation

◆ Request

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

Definition at line 40 of file SocketContextFactory.h.

◆ Response

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

Definition at line 41 of file SocketContextFactory.h.

Constructor & Destructor Documentation

◆ SocketContextFactory()

template<typename RequestT , typename ResponseT >
web::http::client::SocketContextFactory< RequestT, ResponseT >::SocketContextFactory ( const std::function< void(const std::shared_ptr< Request > &)> & onRequestBegin,
const std::function< void(const std::shared_ptr< Request > &)> & onRequestEnd,
const std::function< net::config::ConfigInstance &()> & getConfigInstance )
inline

Definition at line 43 of file SocketContextFactory.h.

48 , configHttp(web::http::client::ConfigHTTP(getConfigInstance())) {
49 }
std::function< void(const std::shared_ptr< Request > &)> onRequestBegin
std::function< void(const std::shared_ptr< Request > &)> onRequestEnd

References web::http::client::SocketContextFactory< RequestT, ResponseT >::SocketContextFactory().

Referenced by web::http::client::SocketContextFactory< RequestT, ResponseT >::SocketContextFactory().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ create()

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

◆ setPipelinedRequests()

template<typename RequestT , typename ResponseT >
void web::http::client::SocketContextFactory< RequestT, ResponseT >::setPipelinedRequests ( bool pipelinedRequests)
inline

Definition at line 51 of file SocketContextFactory.h.

51 {
52 configHttp.setPipelinedRequests(pipelinedRequests);
53 }
void setPipelinedRequests(bool pipelinedRequests)

References web::http::client::SocketContextFactory< RequestT, ResponseT >::configHttp.

Member Data Documentation

◆ configHttp

template<typename RequestT , typename ResponseT >
ConfigHTTP web::http::client::SocketContextFactory< RequestT, ResponseT >::configHttp
private

◆ onRequestBegin

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

Definition at line 60 of file SocketContextFactory.h.

◆ onRequestEnd

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

Definition at line 61 of file SocketContextFactory.h.


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