Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mod_http2.h
Go to the documentation of this file.
1 /* Copyright 2015 greenbytes GmbH (https://www.greenbytes.de)
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8 
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef __MOD_HTTP2_H__
17 #define __MOD_HTTP2_H__
18 
23  conn_rec *, request_rec *, char *));
24 
28  http2_is_h2, (conn_rec *));
29 
30 
31 /*******************************************************************************
32  * HTTP/2 request engines
33  ******************************************************************************/
34 
35 struct apr_thread_cond_t;
36 
38 
39 typedef void http2_output_consumed(void *ctx, conn_rec *c, apr_off_t consumed);
40 
49  const char *id,
50  const char *type,
51  apr_pool_t *pool,
52  apr_size_t req_buffer_size,
53  request_rec *r,
54  http2_output_consumed **pconsumed,
55  void **pbaton);
56 
71  http2_req_engine_push, (const char *engine_type,
72  request_rec *r,
73  http2_req_engine_init *einit));
74 
88  apr_read_type_e block,
89  int capacity,
90  request_rec **pr));
93  conn_rec *rconn,
95 #endif
size_t apr_size_t
Definition: apr.h:375
struct h2_req_engine h2_req_engine
Definition: mod_http2.h:37
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:556
apr_status_t http2_req_engine_pull(h2_req_engine *engine, apr_read_type_e block, int capacity, request_rec **pr)
apr_status_t http2_req_engine_push(const char *engine_type, request_rec *r, http2_req_engine_init *einit)
Structure to store things which are per connection.
Definition: httpd.h:1110
char * http2_var_lookup(apr_pool_t *, server_rec *, conn_rec *, request_rec *, char *)
A structure to store information for each virtual server.
Definition: httpd.h:1302
int http2_is_h2(conn_rec *)
void http2_output_consumed(void *ctx, conn_rec *c, apr_off_t consumed)
Definition: mod_http2.h:39
apr_read_type_e
Definition: apr_buckets.h:57
A structure that represents the current request.
Definition: httpd.h:805
int status
Definition: mod_dav.h:141
void http2_req_engine_done(h2_req_engine *engine, conn_rec *rconn, apr_status_t status)
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
int apr_status_t
Definition: apr_errno.h:44
request_rec * r
Definition: mod_dav.h:519
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
Definition: apr_arch_thread_cond.h:34
off_t apr_off_t
Definition: apr.h:377
apr_status_t http2_req_engine_init(h2_req_engine *engine, const char *id, const char *type, apr_pool_t *pool, apr_size_t req_buffer_size, request_rec *r, http2_output_consumed **pconsumed, void **pbaton)
Definition: mod_http2.h:48