userver: userver/server/request/task_inherited_request.hpp File Reference
Loading...
Searching...
No Matches
task_inherited_request.hpp File Reference

Functions that provide access to HttpRequest stored in TaskInheritedVariable. More...

#include <string>
#include <string_view>
+ Include dependency graph for task_inherited_request.hpp:

Go to the source code of this file.

Namespaces

namespace  http
 HTTP helpers.
 
namespace  http::headers
 Common HTTP headers.
 
namespace  server::request
 Server request related types and functions.
 

Functions

const std::string & server::request::GetTaskInheritedHeader (std::string_view header_name)
 Get a header from server::http::HttpRequest that is handled by the current task hierarchy.
 
const std::string & server::request::GetTaskInheritedHeader (const ::http::headers::PredefinedHeader &header_name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
bool server::request::HasTaskInheritedHeader (std::string_view header_name)
 Checks whether specified header exists in server::http::HttpRequest that is handled by the current task hierarchy.
 
bool server::request::HasTaskInheritedHeader (const ::http::headers::PredefinedHeader &header_name)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Detailed Description

Functions that provide access to HttpRequest stored in TaskInheritedVariable.

Definition in file task_inherited_request.hpp.