proxy.http.exception.http_request_rejected module#

⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.

  1. 2013-present by Abhinav Singh and contributors.


BSD, see LICENSE for more details.

exception proxy.http.exception.http_request_rejected.HttpRequestRejected(status_code: Optional[int] = None, reason: Optional[bytes] = None, headers: Optional[Dict[bytes, bytes]] = None, body: Optional[bytes] = None, **kwargs: Any)[source]#

Bases: proxy.http.exception.base.HttpProtocolException

Generic exception that can be used to reject the client requests.

Connections can either be dropped/closed or optionally an HTTP status code can be returned.

response(_request: HttpParser) Optional[memoryview][source]#