Apache2
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 
30 
33  int *minw, int *max));
34 
35 #define AP_HTTP2_HAS_GET_POLLFD
36 
55  (conn_rec *c, struct apr_pollfd_t *pfd,
56  apr_interval_time_t *ptimeout));
57 
58 /*******************************************************************************
59  * START HTTP/2 request engines (DEPRECATED)
60  ******************************************************************************/
61 
62 /* The following functions were introduced for the experimental mod_proxy_http2
63  * support, but have been abandoned since.
64  * They are still declared here for backward compatibility, in case someone
65  * tries to build an old mod_proxy_http2 against it, but will disappear
66  * completely sometime in the future.
67  */
68 
69 struct apr_thread_cond_t;
70 typedef struct h2_req_engine h2_req_engine;
71 typedef void http2_output_consumed(void *ctx, conn_rec *c, apr_off_t consumed);
72 
74  const char *id,
75  const char *type,
76  apr_pool_t *pool,
77  apr_size_t req_buffer_size,
78  request_rec *r,
79  http2_output_consumed **pconsumed,
80  void **pbaton);
81 
83  http2_req_engine_push, (const char *engine_type,
84  request_rec *r,
86 
90  int capacity,
91  request_rec **pr));
94  conn_rec *rconn,
96 
97 
98 /*******************************************************************************
99  * END HTTP/2 request engines (DEPRECATED)
100  ******************************************************************************/
101 
102 #endif
apr_read_type_e
Definition: apr_buckets.h:62
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
Definition: apr_optional.h:50
request_rec * r
Definition: mod_dav.h:518
int status
Definition: mod_dav.h:141
const char * s
Definition: mod_dav.h:1327
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
apr_bucket_brigade ap_input_mode_t apr_read_type_e block
Definition: mod_dav.h:2663
int apr_status_t
Definition: apr_errno.h:44
off_t apr_off_t
Definition: apr.h:396
size_t apr_size_t
Definition: apr.h:394
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_int64_t apr_interval_time_t
Definition: apr_time.h:55
apr_status_t http2_get_pollfd_from_conn(conn_rec *c, struct apr_pollfd_t *pfd, apr_interval_time_t *ptimeout)
void http2_get_num_workers(server_rec *s, int *minw, int *max)
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:73
int http2_is_h2(conn_rec *)
apr_status_t http2_req_engine_pull(h2_req_engine *engine, apr_read_type_e block, int capacity, request_rec **pr)
void http2_req_engine_done(h2_req_engine *engine, conn_rec *rconn, apr_status_t status)
struct h2_req_engine h2_req_engine
Definition: mod_http2.h:70
void http2_output_consumed(void *ctx, conn_rec *c, apr_off_t consumed)
Definition: mod_http2.h:71
char * http2_var_lookup(apr_pool_t *, server_rec *, conn_rec *, request_rec *, char *)
apr_status_t http2_req_engine_push(const char *engine_type, request_rec *r, http2_req_engine_init *einit)
Definition: apr_poll.h:109
Definition: apr_arch_thread_cond.h:34
Structure to store things which are per connection.
Definition: httpd.h:1193
A structure that represents the current request.
Definition: httpd.h:856
A structure to store information for each virtual server.
Definition: httpd.h:1382