17 #ifndef __mod_h2__h2__ 18 #define __mod_h2__h2__ 26 #define H2_ERR_NO_ERROR (0x00) 27 #define H2_ERR_PROTOCOL_ERROR (0x01) 28 #define H2_ERR_INTERNAL_ERROR (0x02) 29 #define H2_ERR_FLOW_CONTROL_ERROR (0x03) 30 #define H2_ERR_SETTINGS_TIMEOUT (0x04) 31 #define H2_ERR_STREAM_CLOSED (0x05) 32 #define H2_ERR_FRAME_SIZE_ERROR (0x06) 33 #define H2_ERR_REFUSED_STREAM (0x07) 34 #define H2_ERR_CANCEL (0x08) 35 #define H2_ERR_COMPRESSION_ERROR (0x09) 36 #define H2_ERR_CONNECT_ERROR (0x0a) 37 #define H2_ERR_ENHANCE_YOUR_CALM (0x0b) 38 #define H2_ERR_INADEQUATE_SECURITY (0x0c) 39 #define H2_ERR_HTTP_1_1_REQUIRED (0x0d) 41 #define H2_HEADER_METHOD ":method" 42 #define H2_HEADER_METHOD_LEN 7 43 #define H2_HEADER_SCHEME ":scheme" 44 #define H2_HEADER_SCHEME_LEN 7 45 #define H2_HEADER_AUTH ":authority" 46 #define H2_HEADER_AUTH_LEN 10 47 #define H2_HEADER_PATH ":path" 48 #define H2_HEADER_PATH_LEN 5 49 #define H2_CRLF "\r\n" 52 #define H2_FRAME_HDR_LEN 9 55 #define H2_DATA_CHUNK_SIZE ((16*1024) - 100 - H2_FRAME_HDR_LEN) 58 #define H2_MAX_PADLEN 256 60 #define H2_INITIAL_WINDOW_SIZE ((64*1024)-1) 62 #define H2_STREAM_CLIENT_INITIATED(id) (id&0x01) 64 #define H2_ALEN(a) (sizeof(a)/sizeof((a)[0])) 66 #define H2MAX(x,y) ((x) > (y) ? (x) : (y)) 67 #define H2MIN(x,y) ((x) < (y) ? (x) : (y)) 102 unsigned int accepting : 1;
141 unsigned int chunked : 1;
142 unsigned int serialize : 1;
155 #define H2_HTTP_STATUS_UNSET (0) 172 #define H2_TASK_ID_NOTE "http2-task-id" 173 #define H2_FILTER_DEBUG_NOTE "http2-debug" 174 #define H2_HDR_CONFORMANCE "http2-hdr-conformance" 175 #define H2_HDR_CONFORMANCE_UNSAFE "unsafe" 176 #define H2_PUSH_MODE_NOTE "http2-push-mode" h2_dependency dependency
Definition: h2.h:76
int http_status
Definition: h2.h:144
struct h2_session_props h2_session_props
h2_push_policy
Definition: h2.h:80
int error
Definition: h2.h:101
int emitted_count
Definition: h2.h:99
int completed_max
Definition: h2.h:98
h2_dependency
Definition: h2.h:69
apr_int64_t apr_time_t
Definition: apr_time.h:45
const char * method
Definition: h2.h:134
const char * scheme
Definition: h2.h:135
apr_status_t h2_io_data_cb(void *ctx, const char *data, apr_off_t len)
Definition: h2.h:166
#define shutdown
Definition: apr_arch_os2calls.h:55
int emitted_max
Definition: h2.h:100
struct h2_priority h2_priority
h2_stream_state_t
Definition: h2.h:106
apr_time_t request_time
Definition: h2.h:140
const char * path
Definition: h2.h:137
int h2_stream_pri_cmp(int stream_id1, int stream_id2, void *ctx)
Definition: h2.h:168
h2_stream_event_t
Definition: h2.h:118
struct apr_table_t apr_table_t
Definition: apr_tables.h:56
h2_session_state
Definition: h2.h:87
int weight
Definition: h2.h:77
int apr_status_t
Definition: apr_errno.h:44
const char * authority
Definition: h2.h:136
apr_off_t raw_bytes
Definition: h2.h:143
apr_table_t * headers
Definition: h2.h:138
int accepted_max
Definition: h2.h:97
const char * H2_MAGIC_TOKEN