| 117 | |
| 118 | |
| 119 | h2_headers *h2_headers_create(int status, const apr_table_t *headers_in, |
| 120 | const apr_table_t *notes, apr_off_t raw_bytes, |
| 121 | apr_pool_t *pool) |
| 122 | { |
| 123 | h2_headers *headers = apr_pcalloc(pool, sizeof(h2_headers)); |
| 124 | headers->status = status; |
| 125 | headers->headers = (headers_in? apr_table_clone(pool, headers_in) |
| 126 | : apr_table_make(pool, 5)); |
| 127 | headers->notes = (notes? apr_table_clone(pool, notes) |
| 128 | : apr_table_make(pool, 5)); |
| 129 | return headers; |
| 130 | } |
| 131 | |
| 132 | static int add_header_lengths(void *ctx, const char *name, const char *value) |
| 133 | { |
no outgoing calls
no test coverage detected