-
-
Notifications
You must be signed in to change notification settings - Fork 766
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add back connexion.request * Refactor code to lifecycle module * Test user from connexion.request instance
- Loading branch information
1 parent
a95b986
commit 63abcad
Showing
12 changed files
with
73 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
class ConnexionRequest(object): | ||
def __init__(self, | ||
url, | ||
method, | ||
path_params=None, | ||
query=None, | ||
headers=None, | ||
form=None, | ||
body=None, | ||
json=None, | ||
files=None, | ||
context=None): | ||
self.url = url | ||
self.method = method | ||
self.path_params = path_params or {} | ||
self.query = query or {} | ||
self.headers = headers or {} | ||
self.form = form or {} | ||
self.body = body | ||
self.json = json | ||
self.files = files | ||
self.context = context or {} | ||
|
||
|
||
class ConnexionResponse(object): | ||
def __init__(self, | ||
status_code=200, | ||
mimetype=None, | ||
content_type=None, | ||
body=None, | ||
headers=None): | ||
self.status_code = status_code | ||
self.mimetype = mimetype | ||
self.content_type = content_type | ||
self.body = body | ||
self.headers = headers or {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters