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 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef __MOD_HTTP2_H__
18 #define __MOD_HTTP2_H__
19 
24  conn_rec *, request_rec *, char *));
25 
29  http2_is_h2, (conn_rec *));
30 
31 
32 /*******************************************************************************
33  * HTTP/2 request engines
34  ******************************************************************************/
35 
36 struct apr_thread_cond_t;
37 
39 
40 typedef void http2_output_consumed(void *ctx, conn_rec *c, apr_off_t consumed);
41 
50  const char *id,
51  const char *type,
52  apr_pool_t *pool,
53  apr_size_t req_buffer_size,
54  request_rec *r,
55  http2_output_consumed **pconsumed,
56  void **pbaton);
57 
72  http2_req_engine_push, (const char *engine_type,
73  request_rec *r,
74  http2_req_engine_init *einit));
75 
89  apr_read_type_e block,
90  int capacity,
91  request_rec **pr));
94  conn_rec *rconn,
96 
99  int *minw, int *max));
100 
101 #endif
size_t apr_size_t
Definition: apr.h:375
struct h2_req_engine h2_req_engine
Definition: mod_http2.h:38
void http2_get_num_workers(server_rec *s, int *minw, int *max)
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:552
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:1123
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:1310
int http2_is_h2(conn_rec *)
void http2_output_consumed(void *ctx, conn_rec *c, apr_off_t consumed)
Definition: mod_http2.h:40
apr_read_type_e
Definition: apr_buckets.h:57
A structure that represents the current request.
Definition: httpd.h:810
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:515
#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:49