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

Function make_invalid_resp

modules/http2/h2_ws.c:178–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178static apr_bucket *make_invalid_resp(conn_rec *c2, int status,
179 apr_table_t *notes)
180{
181 apr_table_t *nheaders, *nnotes;
182
183 nheaders = apr_table_make(c2->pool, 10);
184 apr_table_setn(nheaders, "Content-Length", "0");
185 nnotes = notes? apr_table_clone(c2->pool, notes) :
186 apr_table_make(c2->pool, 10);
187#if AP_HAS_RESPONSE_BUCKETS
188 return ap_bucket_response_create(status, NULL, nheaders, nnotes,
189 c2->pool, c2->bucket_alloc);
190#else
191 return h2_bucket_headers_create(c2->bucket_alloc,
192 h2_headers_create(status, nheaders,
193 nnotes, 0, c2->pool));
194#endif
195}
196
197static void ws_handle_resp(conn_rec *c2, h2_conn_ctx_t *conn_ctx,
198 struct ws_filter_ctx *ws_ctx, apr_bucket *b)

Callers 1

ws_handle_respFunction · 0.85

Calls 2

h2_bucket_headers_createFunction · 0.85
h2_headers_createFunction · 0.85

Tested by

no test coverage detected