proxy.http.exception.http_request_rejected module#
proxy.py#
⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.
- copyright
2013-present by Abhinav Singh and contributors.
- license
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]#