MCPcopy Create free account
hub / github.com/authlib/authlib / _HTTPException

Class _HTTPException

authlib/integrations/flask_oauth2/errors.py:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7if _version in ("0", "1"):
8
9 class _HTTPException(HTTPException):
10 def __init__(self, code, body, headers, response=None):
11 super().__init__(None, response)
12 self.code = code
13
14 self.body = body
15 self.headers = headers
16
17 def get_body(self, environ=None):
18 return self.body
19
20 def get_headers(self, environ=None):
21 return self.headers
22else:
23
24 class _HTTPException(HTTPException):

Callers 1

raise_http_exceptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected