userver: userver/ugrpc/server/metadata_utils.hpp File Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
metadata_utils.hpp File Reference

Your opinion will help to improve our service

Leave a feedback >

Detailed Description

Utilities to work with the request metadata.

Definition in file metadata_utils.hpp.

Go to the source code of this file.

#include <map>
#include <string_view>
#include <utility>
#include <grpcpp/support/string_ref.h>
#include <boost/range/adaptor/map.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <userver/ugrpc/server/call_context.hpp>
#include <userver/utils/assert.hpp>
#include <userver/utils/text.hpp>

Namespaces

namespace  ugrpc
 Asynchronous gRPC driver.
 
namespace  ugrpc::server
 Server-side utilities.
 

Functions

auto ugrpc::server::GetRepeatedMetadata (CallContextBase &context, std::string_view field_name)
 Returns an std::input_range containing std::string_view which are non-owning references to the values of the metadata field. The references must not outlive the call object to avoid undefined behavior.