Apache2
h2_c1.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_h2__h2_c1__
18 #define __mod_h2__h2_c1__
19 
20 #include <http_core.h>
21 
22 struct h2_conn_ctx_t;
23 
24 extern APR_OPTIONAL_FN_TYPE(ap_logio_add_bytes_in) *h2_c_logio_add_bytes_in;
25 extern APR_OPTIONAL_FN_TYPE(ap_logio_add_bytes_out) *h2_c_logio_add_bytes_out;
26 
27 /* Initialize this child process for h2 primary connection work,
28  * to be called once during child init before multi processing
29  * starts.
30  */
32 
41 
51 
57 
65 
73 
74 /* Register hooks for h2 handling on primary connections.
75  */
77 
81 void h2_c1_child_stopping(apr_pool_t *pool, int graceful);
82 
83 #endif /* defined(__mod_h2__h2_c1__) */
void ap_logio_add_bytes_in(conn_rec *c, apr_off_t bytes)
void ap_logio_add_bytes_out(conn_rec *c, apr_off_t bytes)
request_rec * r
Definition: mod_dav.h:518
const char * s
Definition: mod_dav.h:1327
apr_bucket_brigade request_rec apr_pool_t * pool
Definition: mod_dav.h:557
int apr_status_t
Definition: apr_errno.h:44
struct apr_pool_t apr_pool_t
Definition: apr_pools.h:60
apr_status_t h2_c1_pre_close(struct h2_conn_ctx_t *ctx, conn_rec *c)
apr_status_t h2_c1_run(conn_rec *c)
apr_status_t h2_c1_setup(conn_rec *c, request_rec *r, server_rec *s)
void h2_c1_child_stopping(apr_pool_t *pool, int graceful)
void h2_c1_register_hooks(void)
APR_OPTIONAL_FN_TYPE(ap_logio_add_bytes_in) *h2_c_logio_add_bytes_in
int h2_c1_allows_direct(conn_rec *c)
apr_status_t h2_c1_child_init(apr_pool_t *pool, server_rec *s)
int h2_c1_can_upgrade(request_rec *r)
CORE HTTP Daemon.
Structure to store things which are per connection.
Definition: httpd.h:1193
Definition: h2_conn_ctx.h:40
A structure that represents the current request.
Definition: httpd.h:856
A structure to store information for each virtual server.
Definition: httpd.h:1382