GRPC C++  1.39.1
Macros | Functions
status_metadata.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/transport/status_metadata.h"
#include "src/core/lib/slice/slice_string_helpers.h"
#include "src/core/lib/transport/static_metadata.h"

Macros

#define STATUS_OFFSET   1
 

Functions

grpc_status_code grpc_get_status_code_from_metadata (grpc_mdelem md)
 
grpc_mdelem grpc_get_reffed_status_elem_slowpath (int status_code)
 Get a grpc_mdelem of grpc-status: X where X is the numeric value of status_code. More...
 

Macro Definition Documentation

◆ STATUS_OFFSET

#define STATUS_OFFSET   1

Function Documentation

◆ grpc_get_reffed_status_elem_slowpath()

grpc_mdelem grpc_get_reffed_status_elem_slowpath ( int  status_code)

Get a grpc_mdelem of grpc-status: X where X is the numeric value of status_code.

The returned elem is owned by the caller.

◆ grpc_get_status_code_from_metadata()

grpc_status_code grpc_get_status_code_from_metadata ( grpc_mdelem  md)