]> granicus.if.org Git - apache/blob - modules/http2/h2_task_input.h
bytes read/written on slave connections are reported to mod_logio, fixes PR 58871
[apache] / modules / http2 / h2_task_input.h
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_h2__h2_task_input__
17 #define __mod_h2__h2_task_input__
18
19 /* h2_task_input places the HEADER+DATA, formatted in HTTP/1.1, into
20  * a bucket brigade. The brigade is setup as the input brigade for our
21  * pseudo httpd conn_rec that is handling a specific h2_task.
22  */
23 struct apr_thread_cond_t;
24 struct h2_mplx;
25 struct h2_task;
26
27 typedef struct h2_task_input h2_task_input;
28 struct h2_task_input {
29     conn_rec *c;
30     struct h2_task *task;
31     apr_bucket_brigade *bb;
32 };
33
34
35 h2_task_input *h2_task_input_create(struct h2_task *task, conn_rec *c);
36
37 void h2_task_input_destroy(h2_task_input *input);
38
39 apr_status_t h2_task_input_read(h2_task_input *input,
40                                   ap_filter_t* filter,
41                                   apr_bucket_brigade* brigade,
42                                   ap_input_mode_t mode,
43                                   apr_read_type_e block,
44                                   apr_off_t readbytes);
45
46 #endif /* defined(__mod_h2__h2_task_input__) */