-
-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds the much-anticipated async support to Falcon by way of a new ASGI interface, additional testing helpers, and updated internals. Note that only the HTTP ASGI interface is implemented. WebSocket support is planned to follow. Docs will be fully fleshed-out in a follow-up PR. Changelog snippets will also be added in a follow-up PR. In order to reconcile differences between the WSGI and ASGI interfaces, several breaking changes were made in this patch, as follows: BREAKING CHANGE: create_environ no longer sets a default user agent header BREAKING CHANGE: Renamed `protocol` kwarg for create_environ() to `http_version` and also the renamed kwarg only takes the version string (no longer prefixed with "HTTP/") BREAKING CHANGE: Renamed `app` kwarg for create_environ() to `root_path`. and deprecated, may be removed in a future release. BREAKING CHANGE: get_http_status() is deprecated, no longer accepts floats BREAKING CHANGE: BoundedStream.writeable() changed to writable() per the standard file-like I/O interface (the old name was a misspelling). BREAKING CHANGE: api_helpers.prepare_middleware() no longer accepts a single object; the value that is passed must be an iterable. BREAKING CHANGE: Removed outer "finally" block from API and APP; add an exception handler for the base Exception type if you need to deal with unhandled exceptions. BREAKING CHANGE: falcon.request.access_route will now include the value of the remote_addr property as the last element in the route, if not already present in one of the headers that are checked. BREAKING CHANGE: When the 'REMOTE_ADDR' field is not present in the WSGI environ, Falcon will assume '127.0.0.1' for the value, rather than simply returning `None` for Request.remote_addr.
- Loading branch information
Showing
99 changed files
with
7,803 additions
and
1,221 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
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
Oops, something went wrong.