Apache HTTPD
framework
httpd-2.4.62
modules
http2
h2_headers.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_headers__
18
#define __mod_h2__h2_headers__
19
20
#include "
h2.h
"
21
22
#if !AP_HAS_RESPONSE_BUCKETS
23
24
struct
h2_bucket_beam
;
25
26
typedef
struct
h2_headers
h2_headers
;
27
struct
h2_headers
{
28
int
status
;
29
apr_table_t
*
headers
;
30
apr_table_t
*
notes
;
31
apr_off_t
raw_bytes
;
/* RAW network bytes that generated this request - if known. */
32
};
33
34
35
extern
const
apr_bucket_type_t
h2_bucket_type_headers
;
36
37
#define H2_BUCKET_IS_HEADERS(e) (e->type == &h2_bucket_type_headers)
38
39
apr_bucket
*
h2_bucket_headers_make
(
apr_bucket
*
b
,
h2_headers
*
r
);
40
41
apr_bucket
*
h2_bucket_headers_create
(
apr_bucket_alloc_t
*
list
,
42
h2_headers
*
r
);
43
44
h2_headers
*
h2_bucket_headers_get
(
apr_bucket
*
b
);
45
54
h2_headers
*
h2_headers_create
(
int
status
,
const
apr_table_t
*header,
55
const
apr_table_t
*notes,
apr_off_t
raw_bytes,
56
apr_pool_t
*
pool
);
57
65
h2_headers
*
h2_headers_rcreate
(
request_rec
*
r
,
int
status
,
66
const
apr_table_t
*header,
apr_pool_t
*
pool
);
67
72
h2_headers
*
h2_headers_copy
(
apr_pool_t
*
pool
,
h2_headers
*
h
);
73
78
h2_headers
*
h2_headers_clone
(
apr_pool_t
*
pool
,
h2_headers
*
h
);
79
86
h2_headers
*
h2_headers_die
(
apr_status_t
type
,
87
const
struct
h2_request
*req,
apr_pool_t
*
pool
);
88
89
int
h2_headers_are_final_response
(
h2_headers
*headers);
90
94
apr_size_t
h2_headers_length
(
h2_headers
*headers);
95
100
apr_size_t
h2_bucket_headers_headers_length
(
apr_bucket
*
b
);
101
102
apr_bucket
*
h2_bucket_headers_clone
(
apr_bucket
*
b
,
apr_pool_t
*
pool
,
103
apr_bucket_alloc_t
*
list
);
104
105
#endif
/* !AP_HAS_RESPONSE_BUCKETS */
106
107
#endif
/* defined(__mod_h2__h2_headers__) */
r
request_rec * r
Definition
http_config.h:1168
size
apr_size_t size
Definition
apr_allocator.h:115
pool
const char int apr_pool_t * pool
Definition
apr_cstr.h:84
list
const apr_array_header_t * list
Definition
apr_cstr.h:105
apr_status_t
int apr_status_t
Definition
apr_errno.h:44
type
int type
Definition
apr_file_io.h:798
h
const apr_hash_t * h
Definition
apr_hash.h:97
b
apr_pool_t * b
Definition
apr_pools.h:529
status
int int status
Definition
apr_thread_proc.h:760
h2.h
h2_headers_copy
h2_headers * h2_headers_copy(apr_pool_t *pool, h2_headers *h)
Definition
h2_headers.c:185
h2_headers_create
h2_headers * h2_headers_create(int status, const apr_table_t *header, const apr_table_t *notes, apr_off_t raw_bytes, apr_pool_t *pool)
Definition
h2_headers.c:119
h2_bucket_headers_clone
apr_bucket * h2_bucket_headers_clone(apr_bucket *b, apr_pool_t *pool, apr_bucket_alloc_t *list)
Definition
h2_headers.c:111
h2_headers_are_final_response
int h2_headers_are_final_response(h2_headers *headers)
Definition
h2_headers.c:214
h2_headers_clone
h2_headers * h2_headers_clone(apr_pool_t *pool, h2_headers *h)
Definition
h2_headers.c:190
h2_headers_length
apr_size_t h2_headers_length(h2_headers *headers)
Definition
h2_headers.c:139
h2_bucket_headers_get
h2_headers * h2_bucket_headers_get(apr_bucket *b)
Definition
h2_headers.c:85
h2_bucket_type_headers
const apr_bucket_type_t h2_bucket_type_headers
Definition
h2_headers.c:102
h2_bucket_headers_headers_length
apr_size_t h2_bucket_headers_headers_length(apr_bucket *b)
Definition
h2_headers.c:146
h2_headers_rcreate
h2_headers * h2_headers_rcreate(request_rec *r, int status, const apr_table_t *header, apr_pool_t *pool)
Definition
h2_headers.c:152
h2_bucket_headers_make
apr_bucket * h2_bucket_headers_make(apr_bucket *b, h2_headers *r)
Definition
h2_headers.c:59
h2_headers_die
h2_headers * h2_headers_die(apr_status_t type, const struct h2_request *req, apr_pool_t *pool)
h2_bucket_headers_create
apr_bucket * h2_bucket_headers_create(apr_bucket_alloc_t *list, h2_headers *r)
Definition
h2_headers.c:73
apr_bucket_alloc_t
Definition
apr_buckets_alloc.c:38
apr_bucket_type_t
Definition
apr_buckets.h:131
apr_bucket
Definition
apr_buckets.h:224
apr_pool_t
Definition
apr_pools.c:562
apr_table_t
Definition
apr_tables.c:332
h2_bucket_beam
Definition
h2_bucket_beam.h:44
h2_headers
Definition
h2_headers.h:27
h2_headers::headers
apr_table_t * headers
Definition
h2_headers.h:29
h2_headers::status
int status
Definition
h2_headers.h:28
h2_headers::raw_bytes
apr_off_t raw_bytes
Definition
h2_headers.h:31
h2_headers::notes
apr_table_t * notes
Definition
h2_headers.h:30
h2_request
Definition
h2.h:169
request_rec
A structure that represents the current request.
Definition
httpd.h:845
Generated by
1.9.8