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

Function ap_allow_standard_methods

modules/http/http_request.c:839–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839AP_DECLARE(void) ap_allow_standard_methods(request_rec *r, int reset, ...)
840{
841 int method;
842 va_list methods;
843 apr_int64_t mask;
844
845 /*
846 * Get rid of any current settings if requested; not just the
847 * well-known methods but any extensions as well.
848 */
849 if (reset) {
850 ap_clear_method_list(r->allowed_methods);
851 }
852
853 mask = 0;
854 va_start(methods, reset);
855 while ((method = va_arg(methods, int)) != -1) {
856 mask |= (AP_METHOD_BIT << method);
857 }
858 va_end(methods);
859
860 r->allowed_methods->method_mask |= mask;
861}

Callers 2

handle_map_fileFunction · 0.85
default_handlerFunction · 0.85

Calls 1

ap_clear_method_listFunction · 0.85

Tested by

no test coverage detected