GRPC Core  18.0.0
Functions | Variables
client_authority_filter.cc File Reference
#include <grpc/support/port_platform.h>
#include <assert.h>
#include <limits.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/string_util.h>
#include "src/core/ext/filters/http/client_authority_filter.h"
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/slice/slice_internal.h"
#include "src/core/lib/slice/slice_string_helpers.h"
#include "src/core/lib/surface/call.h"
#include "src/core/lib/surface/channel_init.h"
#include "src/core/lib/surface/channel_stack_type.h"
#include "src/core/lib/transport/static_metadata.h"

Functions

void grpc_client_authority_filter_init (void)
 
void grpc_client_authority_filter_shutdown (void)
 

Variables

const grpc_channel_filter grpc_client_authority_filter
 Filter responsible for setting the authority header, if not already set. More...
 

Function Documentation

◆ grpc_client_authority_filter_init()

void grpc_client_authority_filter_init ( void  )

◆ grpc_client_authority_filter_shutdown()

void grpc_client_authority_filter_shutdown ( void  )

Variable Documentation

◆ grpc_client_authority_filter

const grpc_channel_filter grpc_client_authority_filter
Initial value:
= {
client_authority_start_transport_stream_op_batch,
sizeof(call_data),
client_authority_init_call_elem,
client_authority_destroy_call_elem,
sizeof(channel_data),
client_authority_init_channel_elem,
client_authority_destroy_channel_elem,
"authority"}
void grpc_channel_next_get_info(grpc_channel_element *elem, const grpc_channel_info *channel_info)
Definition: channel_stack.cc:243
void grpc_call_stack_ignore_set_pollset_or_pollset_set(grpc_call_element *, grpc_polling_entity *)
Definition: channel_stack.cc:218
void grpc_channel_next_op(grpc_channel_element *elem, grpc_transport_op *op)
Definition: channel_stack.cc:249
struct connected_channel_channel_data channel_data
struct connected_channel_call_data call_data

Filter responsible for setting the authority header, if not already set.

It uses the value of the GRPC_ARG_DEFAULT_AUTHORITY channel arg if the initial metadata doesn't already contain an authority value.