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

Function ap_copy_method_list

modules/http/http_protocol.c:1562–1575  ·  view source on GitHub ↗

* Make a copy of a method list (primarily for subrequests that may * subsequently change it; don't want them changing the parent's, too!). */

Source from the content-addressed store, hash-verified

1560 * subsequently change it; don't want them changing the parent's, too!).
1561 */
1562AP_DECLARE(void) ap_copy_method_list(ap_method_list_t *dest,
1563 ap_method_list_t *src)
1564{
1565 int i;
1566 char **imethods;
1567 char **omethods;
1568
1569 dest->method_mask = src->method_mask;
1570 imethods = (char **) src->method_list->elts;
1571 for (i = 0; i < src->method_list->nelts; ++i) {
1572 omethods = (char **) apr_array_push(dest->method_list);
1573 *omethods = apr_pstrdup(dest->method_list->pool, imethods[i]);
1574 }
1575}
1576
1577/*
1578 * Return true if the specified HTTP method is in the provided

Callers 2

make_sub_requestFunction · 0.85
http_protocol.hFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected