Molybden API
Loading...
Searching...
No Matches
molybden::UrlRequestJobFactory Class Referenceabstract

A factory that allows you to create UrlRequestJob instances. More...

#include <url_request_job.hpp>

Public Member Functions

virtual std::shared_ptr< UrlRequestJobcreateJob (HttpStatusCode status, const std::vector< HttpHeader > &headers)=0
 Creates and returns a new UrlRequestJob instance.
 

Detailed Description

A factory that allows you to create UrlRequestJob instances.

Member Function Documentation

◆ createJob()

virtual std::shared_ptr< UrlRequestJob > molybden::UrlRequestJobFactory::createJob ( HttpStatusCode  status,
const std::vector< HttpHeader > &  headers 
)
pure virtual

Creates and returns a new UrlRequestJob instance.

Parameters
statusthe HTTP status code.
headersthe HTTP headers.
Returns
a new UrlRequestJob instance with the specified parameters.

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