userver: easy::HttpWith< Dependency >::Callback Class Reference
Loading...
Searching...
No Matches
easy::HttpWith< Dependency >::Callback Class Referencefinal

#include <userver/easy.hpp>

Detailed Description

template<class Dependency = Dependencies<>>
class easy::HttpWith< Dependency >::Callback

Helper class that can store any callback of the following signatures:

If callback returns formats::json::Value then the default content type is set to application/json

Definition at line 153 of file easy.hpp.

Public Member Functions

template<class Function >
 Callback (Function func)
 
HttpBase::Callback Extract () &&noexcept
 

Constructor & Destructor Documentation

◆ Callback()

template<class Dependency >
template<class Function >
easy::HttpWith< Dependency >::Callback::Callback ( Function func)

Definition at line 249 of file easy.hpp.

Member Function Documentation

◆ Extract()

template<class Dependency = Dependencies<>>
HttpBase::Callback easy::HttpWith< Dependency >::Callback::Extract ( ) &&
inlinenoexcept

Definition at line 158 of file easy.hpp.


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