userver
C++ Async Framework
Loading...
Searching...
No Matches
task_inherited_headers.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/server/request/task_inherited_headers.hpp
4
/// @brief Functions that provide access to incoming headers stored in
5
/// TaskInheritedVariable.
6
7
#
include
<
string
>
8
9
#
include
<
boost
/
range
/
iterator_range
.
hpp
>
10
11
#
include
<
userver
/
utils
/
impl
/
transparent_hash
.
hpp
>
12
13
USERVER_NAMESPACE_BEGIN
14
15
namespace
server::
request
{
16
17
using
HeadersToPropagate
=
18
utils
::
impl
::
TransparentMap
<
std
::
string
,
std
::
string
>;
19
20
/// @brief Get a headers that is handled by the current task hierarchy.
21
boost
::
iterator_range
<
HeadersToPropagate
::
const_iterator
>
22
GetTaskInheritedHeaders
();
23
24
/// @brief Set a headers that is handled by the current task hierarchy.
25
void
SetTaskInheritedHeaders
(HeadersToPropagate headers);
26
27
}
// namespace server::request
28
29
USERVER_NAMESPACE_END
userver
server
request
task_inherited_headers.hpp
Generated on Thu Sep 5 2024 11:19:43 for userver by
Doxygen
1.10.0