Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
sese::net::http::RequestableFactory Class Referencefinal

Requestable Factory. More...

#include <RequestableFactory.h>

Inheritance diagram for sese::net::http::RequestableFactory:
sese::NotInstantiable

Public Member Functions

 RequestableFactory ()=delete
 
- Public Member Functions inherited from sese::NotInstantiable
 NotInstantiable ()=delete
 
virtual ~NotInstantiable ()=default
 
 NotInstantiable (const NotInstantiable &)=delete
 
NotInstantiableoperator= (const NotInstantiable &)=delete
 

Static Public Member Functions

static std::unique_ptr< RequestablecreateHttpRequest (const std::string &url, const std::string &proxy="")
 

Detailed Description

Requestable Factory.

Constructor & Destructor Documentation

◆ RequestableFactory()

sese::net::http::RequestableFactory::RequestableFactory ( )
delete

Member Function Documentation

◆ createHttpRequest()

std::unique_ptr< Requestable > RequestableFactory::createHttpRequest ( const std::string & url,
const std::string & proxy = "" )
static

Create a standard requestable type

Parameters
urlRequest URL, supports https/http protocols
proxyProxy URL, supports https/http protocols, if empty, no proxy is used
Returns
Requestable type, returns nullptr if creation fails

References sese::net::http::RequestParser::parse(), and sese::strcmpDoNotCase().


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