19 #ifndef GRPC_CORE_LIB_HTTP_PARSER_H 20 #define GRPC_CORE_LIB_HTTP_PARSER_H 29 #define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH 4096 100 void* request_or_response);
106 size_t* start_of_body);
grpc_core::TraceFlag grpc_http1_trace
void * request_or_response
Definition: parser.h:89
char * body
Definition: parser.h:79
struct grpc_http_request grpc_http_request
void grpc_http_request_destroy(grpc_http_request *request)
Definition: parser.cc:332
size_t cur_line_length
Definition: parser.h:95
grpc_http_header * hdrs
Definition: parser.h:64
grpc_http_version version
Definition: parser.h:61
size_t body_length
Definition: parser.h:78
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1]. ...
Definition: slice.h:60
Definition: error_internal.h:39
size_t body_capacity
Definition: parser.h:91
grpc_http_parser_state state
Definition: parser.h:83
void grpc_http_parser_destroy(grpc_http_parser *parser)
Definition: parser.cc:330
size_t cur_line_end_length
Definition: parser.h:96
grpc_http_response * response
Definition: parser.h:87
grpc_http_parser_state
Definition: parser.h:37
struct grpc_http_response grpc_http_response
char * path
Definition: parser.h:59
grpc_http_request * request
Definition: parser.h:88
void grpc_http_parser_init(grpc_http_parser *parser, grpc_http_type type, void *request_or_response)
Definition: parser.cc:321
grpc_http_header * hdrs
Definition: parser.h:76
size_t body_length
Definition: parser.h:66
grpc_error * grpc_http_parser_eof(grpc_http_parser *parser)
Definition: parser.cc:367
size_t hdr_count
Definition: parser.h:63
void grpc_http_response_destroy(grpc_http_response *response)
Definition: parser.cc:344
int status
Definition: parser.h:73
grpc_http_type
Definition: parser.h:49
char * body
Definition: parser.h:67
struct grpc_http_header grpc_http_header
grpc_http_type type
Definition: parser.h:84
grpc_http_version
Definition: parser.h:43
char * method
Definition: parser.h:57
#define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH
Definition: parser.h:29
size_t hdr_capacity
Definition: parser.h:92
size_t hdr_count
Definition: parser.h:75
grpc_error * grpc_http_parser_parse(grpc_http_parser *parser, const grpc_slice &slice, size_t *start_of_body)
Definition: parser.cc:354