Functions | Variables
src/core/lib/http/parser.cc File Reference
#include <grpc/support/port_platform.h>
#include "src/core/lib/http/parser.h"
#include <string.h>
#include <algorithm>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
Include dependency graph for src/core/lib/http/parser.cc:

Go to the source code of this file.

Functions

static grpc_error_handle add_header (grpc_http_parser *parser)
 
static grpc_error_handle addbyte (grpc_http_parser *parser, uint8_t byte, bool *found_body_start)
 
static grpc_error_handle addbyte_body (grpc_http_parser *parser, uint8_t byte)
 
static char * buf2str (void *buffer, size_t length)
 
static bool check_line (grpc_http_parser *parser)
 
static grpc_error_handle finish_line (grpc_http_parser *parser, bool *found_body_start)
 
void grpc_http_parser_destroy (grpc_http_parser *)
 
grpc_error_handle grpc_http_parser_eof (grpc_http_parser *parser)
 
void grpc_http_parser_init (grpc_http_parser *parser, grpc_http_type type, void *request_or_response)
 
grpc_error_handle grpc_http_parser_parse (grpc_http_parser *parser, const grpc_slice &slice, size_t *start_of_body)
 
void grpc_http_request_destroy (grpc_http_request *request)
 
void grpc_http_response_destroy (grpc_http_response *response)
 
static grpc_error_handle handle_first_line (grpc_http_parser *parser)
 
static grpc_error_handle handle_request_line (grpc_http_parser *parser)
 
static grpc_error_handle handle_response_line (grpc_http_parser *parser)
 

Variables

grpc_core::TraceFlag grpc_http1_trace (false, "http1")
 

Function Documentation

◆ add_header()

static grpc_error_handle add_header ( grpc_http_parser parser)
static

Definition at line 174 of file src/core/lib/http/parser.cc.

◆ addbyte()

static grpc_error_handle addbyte ( grpc_http_parser parser,
uint8_t  byte,
bool found_body_start 
)
static

Definition at line 383 of file src/core/lib/http/parser.cc.

◆ addbyte_body()

static grpc_error_handle addbyte_body ( grpc_http_parser parser,
uint8_t  byte 
)
static

Definition at line 281 of file src/core/lib/http/parser.cc.

◆ buf2str()

static char* buf2str ( void *  buffer,
size_t  length 
)
static

Definition at line 32 of file src/core/lib/http/parser.cc.

◆ check_line()

static bool check_line ( grpc_http_parser parser)
static

Definition at line 359 of file src/core/lib/http/parser.cc.

◆ finish_line()

static grpc_error_handle finish_line ( grpc_http_parser parser,
bool found_body_start 
)
static

Definition at line 245 of file src/core/lib/http/parser.cc.

◆ grpc_http_parser_destroy()

void grpc_http_parser_destroy ( grpc_http_parser )

Definition at line 420 of file src/core/lib/http/parser.cc.

◆ grpc_http_parser_eof()

grpc_error_handle grpc_http_parser_eof ( grpc_http_parser parser)

Definition at line 457 of file src/core/lib/http/parser.cc.

◆ grpc_http_parser_init()

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

Definition at line 411 of file src/core/lib/http/parser.cc.

◆ grpc_http_parser_parse()

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

Definition at line 444 of file src/core/lib/http/parser.cc.

◆ grpc_http_request_destroy()

void grpc_http_request_destroy ( grpc_http_request request)

Definition at line 422 of file src/core/lib/http/parser.cc.

◆ grpc_http_response_destroy()

void grpc_http_response_destroy ( grpc_http_response response)

Definition at line 434 of file src/core/lib/http/parser.cc.

◆ handle_first_line()

static grpc_error_handle handle_first_line ( grpc_http_parser parser)
static

Definition at line 163 of file src/core/lib/http/parser.cc.

◆ handle_request_line()

static grpc_error_handle handle_request_line ( grpc_http_parser parser)
static

Definition at line 92 of file src/core/lib/http/parser.cc.

◆ handle_response_line()

static grpc_error_handle handle_response_line ( grpc_http_parser parser)
static

Definition at line 39 of file src/core/lib/http/parser.cc.

Variable Documentation

◆ grpc_http1_trace

grpc_core::TraceFlag grpc_http1_trace(false, "http1")


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