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

Function ap_allow_methods

modules/http/http_request.c:819–837  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819AP_DECLARE(void) ap_allow_methods(request_rec *r, int reset, ...)
820{
821 const char *method;
822 va_list methods;
823
824 /*
825 * Get rid of any current settings if requested; not just the
826 * well-known methods but any extensions as well.
827 */
828 if (reset) {
829 ap_clear_method_list(r->allowed_methods);
830 }
831
832 va_start(methods, reset);
833 while ((method = va_arg(methods, const char *)) != NULL) {
834 ap_method_list_add(r->allowed_methods, method);
835 }
836 va_end(methods);
837}
838
839AP_DECLARE(void) ap_allow_standard_methods(request_rec *r, int reset, ...)
840{

Callers 1

reflector_handlerFunction · 0.85

Calls 2

ap_clear_method_listFunction · 0.85
ap_method_list_addFunction · 0.85

Tested by

no test coverage detected