|
GRPC C++
1.26.0
|
#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 * | grpc_http_parser_parse (grpc_http_parser *parser, const grpc_slice &slice, size_t *start_of_body) |
| grpc_error * | 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 |
| #define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH 4096 |
| typedef struct grpc_http_header grpc_http_header |
| typedef struct grpc_http_request grpc_http_request |
| typedef struct grpc_http_response grpc_http_response |
| enum grpc_http_type |
| enum grpc_http_version |
| void grpc_http_parser_destroy | ( | grpc_http_parser * | parser | ) |
| grpc_error* 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* 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 | ) |
|
extern |