userver: userver/server/request/task_inherited_request.hpp File Reference
Loading...
Searching...
No Matches
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 <boost/container/small_vector.hpp>
#include <boost/range/iterator_range.hpp>
#include <userver/http/header_map.hpp>

Classes

struct  server::request::Header
 

Namespaces

namespace  http
 HTTP helpers.
 
namespace  http::headers
 Common HTTP headers.
 
namespace  server::http
 Server parts of the HTTP protocol implementation.
 
namespace  server::request
 Server request related types and functions.
 

Typedefs

using server::request::HeadersToPropagate = boost::container::small_vector<Header, 10>
 

Functions

const std::string & server::request::GetPropagatedHeader (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::GetPropagatedHeader (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::HasPropagatedHeader (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::HasPropagatedHeader (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.
 
boost::iterator_range< HeadersToPropagate::const_iterator > server::request::GetPropagatedHeaders ()
 Get a headers that is handled by the current task hierarchy.
 
void server::request::SetPropagatedHeaders (HeadersToPropagate headers)
 Set a headers that is handled by the current task hierarchy.
 
const std::string & server::request::GetTaskInheritedQueryParameter (std::string_view name)
 Get a query parameter from server::http::HttpRequest that is handled by the current task hierarchy.
 
bool server::request::HasTaskInheritedQueryParameter (std::string_view name)
 Checks whether specified query parameter exists in server::http::HttpRequest that is handled by the current task hierarchy.