1 /* Copyright 2015 greenbytes GmbH (https://www.greenbytes.de)
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __mod_h2__h2_task_input__
17 #define __mod_h2__h2_task_input__
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.
23 struct apr_thread_cond_t;
27 typedef struct h2_task_input h2_task_input;
28 struct h2_task_input {
29 struct h2_task_env *env;
30 apr_bucket_brigade *bb;
34 h2_task_input *h2_task_input_create(struct h2_task_env *env, apr_pool_t *pool,
35 apr_bucket_alloc_t *bucket_alloc);
37 void h2_task_input_destroy(h2_task_input *input);
39 apr_status_t h2_task_input_read(h2_task_input *input,
41 apr_bucket_brigade* brigade,
43 apr_read_type_e block,
46 #endif /* defined(__mod_h2__h2_task_input__) */