Apache2
h2_headers.h File Reference
#include "h2.h"
Include dependency graph for h2_headers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  h2_headers
 

Macros

#define H2_BUCKET_IS_HEADERS(e)   (e->type == &h2_bucket_type_headers)
 

Typedefs

typedef struct h2_headers h2_headers
 

Functions

apr_bucketh2_bucket_headers_make (apr_bucket *b, h2_headers *r)
 
apr_bucketh2_bucket_headers_create (apr_bucket_alloc_t *list, h2_headers *r)
 
h2_headersh2_bucket_headers_get (apr_bucket *b)
 
h2_headersh2_headers_create (int status, const apr_table_t *header, const apr_table_t *notes, apr_off_t raw_bytes, apr_pool_t *pool)
 
h2_headersh2_headers_rcreate (request_rec *r, int status, const apr_table_t *header, apr_pool_t *pool)
 
h2_headersh2_headers_copy (apr_pool_t *pool, h2_headers *h)
 
h2_headersh2_headers_clone (apr_pool_t *pool, h2_headers *h)
 
h2_headersh2_headers_die (apr_status_t type, const struct h2_request *req, apr_pool_t *pool)
 
int h2_headers_are_final_response (h2_headers *headers)
 
apr_size_t h2_headers_length (h2_headers *headers)
 
apr_size_t h2_bucket_headers_headers_length (apr_bucket *b)
 
apr_bucketh2_bucket_headers_clone (apr_bucket *b, apr_pool_t *pool, apr_bucket_alloc_t *list)
 

Variables

const apr_bucket_type_t h2_bucket_type_headers
 

Macro Definition Documentation

◆ H2_BUCKET_IS_HEADERS

#define H2_BUCKET_IS_HEADERS (   e)    (e->type == &h2_bucket_type_headers)

Typedef Documentation

◆ h2_headers

typedef struct h2_headers h2_headers

Function Documentation

◆ h2_bucket_headers_clone()

apr_bucket* h2_bucket_headers_clone ( apr_bucket b,
apr_pool_t pool,
apr_bucket_alloc_t list 
)

◆ h2_bucket_headers_create()

apr_bucket* h2_bucket_headers_create ( apr_bucket_alloc_t list,
h2_headers r 
)

◆ h2_bucket_headers_get()

h2_headers* h2_bucket_headers_get ( apr_bucket b)

◆ h2_bucket_headers_headers_length()

apr_size_t h2_bucket_headers_headers_length ( apr_bucket b)

For H2HEADER buckets, return the length of all contained header strings. For all other buckets, return 0.

◆ h2_bucket_headers_make()

apr_bucket* h2_bucket_headers_make ( apr_bucket b,
h2_headers r 
)

◆ h2_headers_are_final_response()

int h2_headers_are_final_response ( h2_headers headers)

◆ h2_headers_clone()

h2_headers* h2_headers_clone ( apr_pool_t pool,
h2_headers h 
)

Clone the headers into another pool. This will also clone any header strings.

◆ h2_headers_copy()

h2_headers* h2_headers_copy ( apr_pool_t pool,
h2_headers h 
)

Copy the headers into another pool. This will not copy any header strings.

◆ 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 
)

Create the headers from the given status and headers

Parameters
statusthe headers status
headerthe headers of the headers
notesthe notes carried by the headers
raw_bytesthe raw network bytes (if known) used to transmit these
poolthe memory pool to use

◆ h2_headers_die()

h2_headers* h2_headers_die ( apr_status_t  type,
const struct h2_request req,
apr_pool_t pool 
)

Create the headers for the given error.

Parameters
typethe error code
reqthe original h2_request
poolthe memory pool to use

◆ h2_headers_length()

apr_size_t h2_headers_length ( h2_headers headers)

Give the number of bytes of all contained header strings.

◆ h2_headers_rcreate()

h2_headers* h2_headers_rcreate ( request_rec r,
int  status,
const apr_table_t header,
apr_pool_t pool 
)

Create the headers from the given request_rec.

Parameters
rthe request record which was processed
statusthe headers status
headerthe headers of the headers
poolthe memory pool to use

Variable Documentation

◆ h2_bucket_type_headers

const apr_bucket_type_t h2_bucket_type_headers
extern