GRPC C++  1.39.1
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
parser.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/slice.h>
#include "src/core/lib/debug/trace.h"
#include "src/core/lib/iomgr/error.h"

Go to the source code of this file.

Data Structures

struct  grpc_http_header
 
struct  grpc_http_request
 
struct  grpc_http_response
 
struct  grpc_http_parser
 

Macros

#define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH   4096
 

Typedefs

typedef struct grpc_http_header grpc_http_header
 
typedef struct grpc_http_request grpc_http_request
 
typedef struct grpc_http_response grpc_http_response
 

Enumerations

enum  grpc_http_parser_state { GRPC_HTTP_FIRST_LINE , GRPC_HTTP_HEADERS , GRPC_HTTP_BODY }
 
enum  grpc_http_version { GRPC_HTTP_HTTP10 , GRPC_HTTP_HTTP11 , GRPC_HTTP_HTTP20 }
 
enum  grpc_http_type { GRPC_HTTP_RESPONSE , GRPC_HTTP_REQUEST }
 

Functions

void grpc_http_parser_init (grpc_http_parser *parser, grpc_http_type type, void *request_or_response)
 
void grpc_http_parser_destroy (grpc_http_parser *parser)
 
grpc_error_handle grpc_http_parser_parse (grpc_http_parser *parser, const grpc_slice &slice, size_t *start_of_body)
 
grpc_error_handle grpc_http_parser_eof (grpc_http_parser *parser)
 
void grpc_http_request_destroy (grpc_http_request *request)
 
void grpc_http_response_destroy (grpc_http_response *response)
 

Variables

grpc_core::TraceFlag grpc_http1_trace
 

Macro Definition Documentation

◆ GRPC_HTTP_PARSER_MAX_HEADER_LENGTH

#define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH   4096

Typedef Documentation

◆ grpc_http_header

◆ grpc_http_request

◆ grpc_http_response

Enumeration Type Documentation

◆ grpc_http_parser_state

Enumerator
GRPC_HTTP_FIRST_LINE 
GRPC_HTTP_HEADERS 
GRPC_HTTP_BODY 

◆ grpc_http_type

Enumerator
GRPC_HTTP_RESPONSE 
GRPC_HTTP_REQUEST 

◆ grpc_http_version

Enumerator
GRPC_HTTP_HTTP10 
GRPC_HTTP_HTTP11 
GRPC_HTTP_HTTP20 

Function Documentation

◆ grpc_http_parser_destroy()

void grpc_http_parser_destroy ( grpc_http_parser parser)

◆ grpc_http_parser_eof()

grpc_error_handle grpc_http_parser_eof ( grpc_http_parser parser)

◆ grpc_http_parser_init()

void grpc_http_parser_init ( grpc_http_parser parser,
grpc_http_type  type,
void *  request_or_response 
)

◆ grpc_http_parser_parse()

grpc_error_handle grpc_http_parser_parse ( grpc_http_parser parser,
const grpc_slice slice,
size_t *  start_of_body 
)

◆ grpc_http_request_destroy()

void grpc_http_request_destroy ( grpc_http_request request)

◆ grpc_http_response_destroy()

void grpc_http_response_destroy ( grpc_http_response response)

Variable Documentation

◆ grpc_http1_trace

grpc_core::TraceFlag grpc_http1_trace
extern