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

Detailed Description

Definition at line 21 of file request_base.hpp.

Public Member Functions

virtual bool IsFinal () const =0
 
virtual bool IsUpgradeWebsocket () const =0
 
virtual void DoUpgrade (std::unique_ptr< engine::io::RwBase > &&socket, engine::io::Sockaddr &&peer_name) const =0
 
virtual ResponseBaseGetResponse () const =0
 
virtual void WriteAccessLogs (const logging::LoggerPtr &logger_access, const logging::LoggerPtr &logger_access_tskv, const std::string &remote_address) const =0
 
virtual const std::string & GetRequestPath () const =0
 
void SetTaskCreateTime ()
 
void SetTaskStartTime ()
 
void SetResponseNotifyTime ()
 
void SetResponseNotifyTime (std::chrono::steady_clock::time_point now)
 
void SetStartSendResponseTime ()
 
void SetFinishSendResponseTime ()
 
virtual void SetMatchedPathLength (size_t length)=0
 
std::chrono::steady_clock::time_point StartTime () const
 
virtual void MarkAsInternalServerError () const =0
 
virtual void AccountResponseTime ()=0
 

Protected Attributes

std::chrono::steady_clock::time_point start_time_
 
std::chrono::steady_clock::time_point task_create_time_
 
std::chrono::steady_clock::time_point task_start_time_
 
std::chrono::steady_clock::time_point response_notify_time_
 
std::chrono::steady_clock::time_point start_send_response_time_
 
std::chrono::steady_clock::time_point finish_send_response_time_
 

Member Function Documentation

◆ StartTime()

std::chrono::steady_clock::time_point server::request::RequestBase::StartTime ( ) const
inline

Definition at line 48 of file request_base.hpp.

Member Data Documentation

◆ finish_send_response_time_

std::chrono::steady_clock::time_point server::request::RequestBase::finish_send_response_time_
protected

Definition at line 68 of file request_base.hpp.

◆ response_notify_time_

std::chrono::steady_clock::time_point server::request::RequestBase::response_notify_time_
protected

Definition at line 64 of file request_base.hpp.

◆ start_send_response_time_

std::chrono::steady_clock::time_point server::request::RequestBase::start_send_response_time_
protected

Definition at line 66 of file request_base.hpp.

◆ start_time_

std::chrono::steady_clock::time_point server::request::RequestBase::start_time_
protected

Definition at line 58 of file request_base.hpp.

◆ task_create_time_

std::chrono::steady_clock::time_point server::request::RequestBase::task_create_time_
protected

Definition at line 60 of file request_base.hpp.

◆ task_start_time_

std::chrono::steady_clock::time_point server::request::RequestBase::task_start_time_
protected

Definition at line 62 of file request_base.hpp.


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