Apache HTTPD
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,
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
72
74 const char *id,
75 const char *type,
77 apr_size_t req_buffer_size,
80 void **pbaton);
81
86
90 int capacity,
91 request_rec **pr));
96
97
98/*******************************************************************************
99 * END HTTP/2 request engines (DEPRECATED)
100 ******************************************************************************/
101
102#endif
request_rec * r
apr_read_type_e
Definition apr_buckets.h:57
apr_brigade_flush void * ctx
#define APR_DECLARE_OPTIONAL_FN(ret, name, args)
apr_size_t size
const char int apr_pool_t * pool
Definition apr_cstr.h:84
int apr_status_t
Definition apr_errno.h:44
int type
apr_vformatter_buff_t * c
Definition apr_lib.h:175
const char * s
Definition apr_strings.h:95
int int status
apr_int64_t apr_interval_time_t
Definition apr_time.h:55
apr_size_t apr_size_t max
Definition apr_time.h:220
static apr_status_t http2_get_pollfd_from_conn(conn_rec *c, struct apr_pollfd_t *pfd, apr_interval_time_t *ptimeout)
Definition h2_c2.c:480
static void http2_get_num_workers(server_rec *s, int *minw, int *maxw)
Definition mod_http2.c:152
static char * http2_var_lookup(apr_pool_t *, server_rec *, conn_rec *, request_rec *, char *name)
Definition mod_http2.c:319
static int http2_is_h2(conn_rec *)
Definition mod_http2.c:314
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
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
Structure to store things which are per connection.
Definition httpd.h:1152
A structure that represents the current request.
Definition httpd.h:845
A structure to store information for each virtual server.
Definition httpd.h:1322