Classes | Macros | Typedefs | Enumerations | Functions | Variables
src/core/lib/http/parser.h File Reference
#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"
Include dependency graph for src/core/lib/http/parser.h:
This graph shows which files directly or indirectly include this file:

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
 

Enumerations

enum  grpc_http_parser_chunked_state {
  GRPC_HTTP_CHUNKED_PLAIN, GRPC_HTTP_CHUNKED_LENGTH, GRPC_HTTP_CHUNKED_IGNORE_ALL_UNTIL_LF, GRPC_HTTP_CHUNKED_BODY,
  GRPC_HTTP_CHUNKED_CONSUME_LF
}
 
enum  grpc_http_parser_state {
  GRPC_HTTP_FIRST_LINE, GRPC_HTTP_HEADERS, GRPC_HTTP_BODY, GRPC_HTTP_TRAILERS,
  GRPC_HTTP_END
}
 
enum  grpc_http_type { GRPC_HTTP_RESPONSE, GRPC_HTTP_REQUEST }
 
enum  grpc_http_version { GRPC_HTTP_HTTP10, GRPC_HTTP_HTTP11, GRPC_HTTP_HTTP20 }
 

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
 

Macro Definition Documentation

◆ GRPC_HTTP_PARSER_MAX_HEADER_LENGTH

#define GRPC_HTTP_PARSER_MAX_HEADER_LENGTH   4096

Definition at line 33 of file src/core/lib/http/parser.h.

Typedef Documentation

◆ grpc_http_header

◆ grpc_http_request

◆ grpc_http_response

Enumeration Type Documentation

◆ grpc_http_parser_chunked_state

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.

◆ grpc_http_parser_state

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.

◆ grpc_http_type

Enumerator
GRPC_HTTP_RESPONSE 
GRPC_HTTP_REQUEST 

Definition at line 63 of file src/core/lib/http/parser.h.

◆ 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.

Function Documentation

◆ grpc_http_parser_destroy()

void grpc_http_parser_destroy ( grpc_http_parser 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.

Variable Documentation

◆ grpc_http1_trace

grpc_core::TraceFlag grpc_http1_trace


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