(self, method)
Validate a method name for putrequest.
Validate a method name for putrequest.
Validate a method name for putrequest .
def _validate_method(self, method):
        """Validate a method name for putrequest."""
        # prevent http header injection
        match = _contains_disallowed_method_pchar_re.search(method)
        if match:
            raise ValueError(
                    f"method can't contain control characters. {method!r} "
                    f"(found at least {match.group()!r})")
def _validate_method ( self , method ) : # prevent http header injection match = _contains_disallowed_method_pchar_re . search ( method ) if match : raise ValueError ( f"method can't contain control characters. {method!r} " f"(found at least {match.group()!r})" )