Macros | Functions
validate_metadata.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/surface/validate_metadata.h"
#include "absl/strings/string_view.h"
#include <grpc/grpc.h>
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/bitset.h"
#include "src/core/lib/gprpp/memory.h"
#include "src/core/lib/iomgr/error.h"
Include dependency graph for validate_metadata.cc:

Go to the source code of this file.

Macros

#define GRPC_VALIDATE_METADATA_CONSTEXPR_FN
 
#define GRPC_VALIDATE_METADATA_CONSTEXPR_VALUE   const
 

Functions

static grpc_error_handle conforms_to (const grpc_slice &slice, const grpc_core::BitSet< 256 > &legal_bits, const char *err_desc)
 
static int error2int (grpc_error_handle error)
 
int grpc_header_key_is_legal (grpc_slice slice)
 
int grpc_header_nonbin_value_is_legal (grpc_slice slice)
 
int grpc_is_binary_header (grpc_slice slice)
 
int grpc_is_binary_header_internal (const grpc_slice &slice)
 
grpc_error_handle grpc_validate_header_key_is_legal (const grpc_slice &slice)
 
grpc_error_handle grpc_validate_header_nonbin_value_is_legal (const grpc_slice &slice)
 

Macro Definition Documentation

◆ GRPC_VALIDATE_METADATA_CONSTEXPR_FN

#define GRPC_VALIDATE_METADATA_CONSTEXPR_FN

Definition at line 36 of file validate_metadata.cc.

◆ GRPC_VALIDATE_METADATA_CONSTEXPR_VALUE

#define GRPC_VALIDATE_METADATA_CONSTEXPR_VALUE   const

Definition at line 37 of file validate_metadata.cc.

Function Documentation

◆ conforms_to()

static grpc_error_handle conforms_to ( const grpc_slice slice,
const grpc_core::BitSet< 256 > &  legal_bits,
const char *  err_desc 
)
static

Definition at line 40 of file validate_metadata.cc.

◆ error2int()

static int error2int ( grpc_error_handle  error)
static

Definition at line 62 of file validate_metadata.cc.

◆ grpc_header_key_is_legal()

int grpc_header_key_is_legal ( grpc_slice  slice)

Check whether a metadata key is legal (will be accepted by core)

Definition at line 99 of file validate_metadata.cc.

◆ grpc_header_nonbin_value_is_legal()

int grpc_header_nonbin_value_is_legal ( grpc_slice  slice)

Check whether a non-binary metadata value is legal (will be accepted by core)

Definition at line 122 of file validate_metadata.cc.

◆ grpc_is_binary_header()

int grpc_is_binary_header ( grpc_slice  slice)

Check whether a metadata key corresponds to a binary value

Definition at line 131 of file validate_metadata.cc.

◆ grpc_is_binary_header_internal()

int grpc_is_binary_header_internal ( const grpc_slice slice)

Definition at line 126 of file validate_metadata.cc.

◆ grpc_validate_header_key_is_legal()

grpc_error_handle grpc_validate_header_key_is_legal ( const grpc_slice slice)

Definition at line 83 of file validate_metadata.cc.

◆ grpc_validate_header_nonbin_value_is_legal()

grpc_error_handle grpc_validate_header_nonbin_value_is_legal ( const grpc_slice slice)

Definition at line 116 of file validate_metadata.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:37