userver: server::request::ResponseBase Class Reference
Loading...
Searching...
No Matches
server::request::ResponseBase Class Referenceabstract

#include <userver/server/request/response_base.hpp>

Detailed Description

Base class for all the server responses.

Definition at line 75 of file response_base.hpp.

+ Inheritance diagram for server::request::ResponseBase:

Public Member Functions

 ResponseBase (ResponseDataAccounter &data_accounter)
 
 ResponseBase (const ResponseBase &)=delete
 
 ResponseBase (ResponseBase &&)=delete
 
void SetData (std::string data)
 
const std::string & GetData () const
 
std::string && ExtractData ()
 
virtual bool IsBodyStreamed () const =0
 
virtual bool WaitForHeadersEnd ()=0
 
virtual void SetHeadersEnd ()=0
 

Protected Member Functions

 ResponseBase (ResponseDataAccounter &data_account, std::chrono::steady_clock::time_point now)
 
void SetSent (std::size_t bytes_sent, std::chrono::steady_clock::time_point sent_time)
 

Member Function Documentation

◆ ExtractData()

std::string && server::request::ResponseBase::ExtractData ( )
inline

Definition at line 84 of file response_base.hpp.

◆ GetData()

const std::string & server::request::ResponseBase::GetData ( ) const
inline

Definition at line 83 of file response_base.hpp.


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