net-cpp  2.0.0
C++11 library for networking purposes
core::net::http::Request::Handler Class Reference

Encapsulates callbacks that can happen during request execution. More...

#include <request.h>

+ Collaboration diagram for core::net::http::Request::Handler:

Public Member Functions

 Handler ()=default
 
const ProgressHandleron_progress () const
 Returns the currently set progress handler. More...
 
Handleron_progress (const ProgressHandler &handler)
 Adjusts the currently set progress handler. More...
 
const ResponseHandleron_response () const
 Returns the currently set response handler. More...
 
Handleron_response (const ResponseHandler &handler)
 Adjusts the currently set response handler. More...
 
const ErrorHandleron_error () const
 Returns the currently set error handler. More...
 
Handleron_error (const ErrorHandler &handler)
 Adjusts the currently set error handler. More...
 

Detailed Description

Encapsulates callbacks that can happen during request execution.

Definition at line 118 of file request.h.

Constructor & Destructor Documentation

core::net::http::Request::Handler::Handler ( )
default

Member Function Documentation

const ErrorHandler& core::net::http::Request::Handler::on_error ( ) const

Returns the currently set error handler.

Handler& core::net::http::Request::Handler::on_error ( const ErrorHandler handler)

Adjusts the currently set error handler.

const ProgressHandler& core::net::http::Request::Handler::on_progress ( ) const

Returns the currently set progress handler.

Handler& core::net::http::Request::Handler::on_progress ( const ProgressHandler handler)

Adjusts the currently set progress handler.

const ResponseHandler& core::net::http::Request::Handler::on_response ( ) const

Returns the currently set response handler.

Handler& core::net::http::Request::Handler::on_response ( const ResponseHandler handler)

Adjusts the currently set response handler.


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