MCPcopy Create free account
hub / github.com/apache/httpd / h2_request_create

Function h2_request_create

modules/http2/h2_request.c:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47h2_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
63typedef struct {
64 apr_table_t *headers;

Callers 2

h2_stream_add_headerFunction · 0.85
add_pushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected