#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <stdint.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.
Classes | |
struct | grpc_http_header |
struct | grpc_http_parser |
struct | grpc_http_request |
struct | grpc_http_response |
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 |
Functions | |
void | grpc_http_parser_destroy (grpc_http_parser *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) |
Variables | |
grpc_core::TraceFlag | grpc_http1_trace |
#define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH 4096 |
Definition at line 33 of file src/core/lib/http/parser.h.
typedef struct grpc_http_header grpc_http_header |
typedef struct grpc_http_request grpc_http_request |
typedef struct grpc_http_response grpc_http_response |
Enumerator | |
---|---|
GRPC_HTTP_CHUNKED_PLAIN | |
GRPC_HTTP_CHUNKED_LENGTH | |
GRPC_HTTP_CHUNKED_IGNORE_ALL_UNTIL_LF | |
GRPC_HTTP_CHUNKED_BODY | |
GRPC_HTTP_CHUNKED_CONSUME_LF |
Definition at line 49 of file src/core/lib/http/parser.h.
Enumerator | |
---|---|
GRPC_HTTP_FIRST_LINE | |
GRPC_HTTP_HEADERS | |
GRPC_HTTP_BODY | |
GRPC_HTTP_TRAILERS | |
GRPC_HTTP_END |
Definition at line 41 of file src/core/lib/http/parser.h.
enum grpc_http_type |
Enumerator | |
---|---|
GRPC_HTTP_RESPONSE | |
GRPC_HTTP_REQUEST |
Definition at line 63 of file src/core/lib/http/parser.h.
enum grpc_http_version |
Enumerator | |
---|---|
GRPC_HTTP_HTTP10 | |
GRPC_HTTP_HTTP11 | |
GRPC_HTTP_HTTP20 |
Definition at line 57 of file src/core/lib/http/parser.h.
void grpc_http_parser_destroy | ( | grpc_http_parser * | parser | ) |
Definition at line 420 of file src/core/lib/http/parser.cc.
grpc_error_handle grpc_http_parser_eof | ( | grpc_http_parser * | parser | ) |
Definition at line 457 of file src/core/lib/http/parser.cc.
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_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.
void grpc_http_request_destroy | ( | grpc_http_request * | request | ) |
Definition at line 422 of file src/core/lib/http/parser.cc.
void grpc_http_response_destroy | ( | grpc_http_response * | response | ) |
Definition at line 434 of file src/core/lib/http/parser.cc.
grpc_core::TraceFlag grpc_http1_trace |