| 45 | |
| 46 | |
| 47 | h2_request *h2_request_create(int id, apr_pool_t *pool, const char *method, |
| 48 | const char *scheme, const char *authority, |
| 49 | const char *path, apr_table_t *header) |
| 50 | { |
| 51 | h2_request *req = apr_pcalloc(pool, sizeof(h2_request)); |
| 52 | |
| 53 | req->method = method; |
| 54 | req->scheme = scheme; |
| 55 | req->authority = authority; |
| 56 | req->path = path; |
| 57 | req->headers = header? header : apr_table_make(pool, 10); |
| 58 | req->request_time = apr_time_now(); |
| 59 | |
| 60 | return req; |
| 61 | } |
| 62 | |
| 63 | typedef struct { |
| 64 | apr_table_t *headers; |
no outgoing calls
no test coverage detected