AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::rest::RpcContext Class Reference

#include <rpcService.hpp>

Collaboration diagram for anch::rest::RpcContext:

Public Member Functions

 RpcContext (anch::rest::Headers request=anch::rest::Headers())
const anch::rest::Headers & getRequestMetadata () const noexcept
anch::rest::Headers & getResponseMetadata () noexcept

Detailed Description

RPC call context: request metadata (HTTP headers, gRPC metadata) and response metadata

Author
Vincent Lachenal
Since
0.2

Constructor & Destructor Documentation

◆ RpcContext()

anch::rest::RpcContext::RpcContext ( anch::rest::Headers request = anch::rest::Headers())
explicit

RpcContext constructor

Parameters
requestthe request metadata

Member Function Documentation

◆ getRequestMetadata()

const anch::rest::Headers & anch::rest::RpcContext::getRequestMetadata ( ) const
noexcept

Get request metadata

Returns
the metadata

◆ getResponseMetadata()

anch::rest::Headers & anch::rest::RpcContext::getResponseMetadata ( )
noexcept

Get response metadata, to complete (HTTP headers, gRPC initial metadata: names in lower case)

Returns
the metadata
Here is the call graph for this function:

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