userver: userver/server/request/task_inherited_request.hpp File Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
task_inherited_request.hpp File Reference

Detailed Description

Functions that provide access to HttpRequest stored in TaskInheritedVariable.

Definition in file task_inherited_request.hpp.

Go to the source code of this file.

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

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.