proxy.http.exception.base 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.base.HttpProtocolException(message: Optional[str] = None, **kwargs: Any)[source]#

Bases: Exception

Top level HttpProtocolException exception class.

All exceptions raised during execution of HTTP request lifecycle MUST inherit HttpProtocolException base class. Implement response() method to optionally return custom response to client.

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