Go to the documentation of this file.
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_HTTP_HTTP11
Definition: parser.h:45
grpc_http_version version
Definition: parser.h:61
grpc_http_type
Definition: parser.h:49
size_t hdr_capacity
Definition: parser.h:92
void grpc_http_response_destroy(grpc_http_response *response)
Definition: parser.cc:344
@ GRPC_HTTP_BODY
Definition: parser.h:40
char * body
Definition: parser.h:79
char * method
Definition: parser.h:57
struct grpc_http_response grpc_http_response
void * request_or_response
Definition: parser.h:89
grpc_http_parser_state state
Definition: parser.h:83
struct grpc_http_header grpc_http_header
void grpc_http_parser_init(grpc_http_parser *parser, grpc_http_type type, void *request_or_response)
Definition: parser.cc:321
grpc_error * grpc_http_parser_eof(grpc_http_parser *parser)
Definition: parser.cc:367
char * body
Definition: parser.h:67
size_t cur_line_length
Definition: parser.h:95
grpc_http_response * response
Definition: parser.h:87
@ GRPC_HTTP_REQUEST
Definition: parser.h:51
size_t body_capacity
Definition: parser.h:91
@ GRPC_HTTP_HEADERS
Definition: parser.h:39
#define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH
Definition: parser.h:29
struct grpc_http_request grpc_http_request
A grpc_slice s, if initialized, represents the byte range s.bytes[0..s.length-1].
Definition: slice.h:60
grpc_http_header * hdrs
Definition: parser.h:76
int status
Definition: parser.h:73
grpc_http_type type
Definition: parser.h:84
void grpc_http_request_destroy(grpc_http_request *request)
Definition: parser.cc:332
@ GRPC_HTTP_RESPONSE
Definition: parser.h:50
grpc_http_version
Definition: parser.h:43
void grpc_http_parser_destroy(grpc_http_parser *parser)
Definition: parser.cc:330
@ GRPC_HTTP_HTTP20
Definition: parser.h:46
size_t hdr_count
Definition: parser.h:63
size_t body_length
Definition: parser.h:78
grpc_error * grpc_http_parser_parse(grpc_http_parser *parser, const grpc_slice &slice, size_t *start_of_body)
Definition: parser.cc:354
size_t body_length
Definition: parser.h:66
char * path
Definition: parser.h:59
grpc_core::TraceFlag grpc_http1_trace
grpc_http_parser_state
Definition: parser.h:37
size_t hdr_count
Definition: parser.h:75
grpc_http_header * hdrs
Definition: parser.h:64
Definition: error_internal.h:39
@ GRPC_HTTP_HTTP10
Definition: parser.h:44
grpc_http_request * request
Definition: parser.h:88
@ GRPC_HTTP_FIRST_LINE
Definition: parser.h:38
size_t cur_line_end_length
Definition: parser.h:96