-
-
Notifications
You must be signed in to change notification settings - Fork 946
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(helpers): privatize helper methods intended only for internal u…
…se (#2341) * chore(helpers): privatize internal helper methods * chore(helpers): privatize ASGI _header_property even more * chore(newsfragments): use the correct issue number * chore: clean up newsfragment for privatization of helpers
- Loading branch information
Showing
10 changed files
with
96 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
A number of undocumented internal helpers were renamed to start with an | ||
underscore, indicating they are private methods intended to be used only by the | ||
framework itself: | ||
|
||
* ``falcon.request_helpers.header_property`` → | ||
``falcon.request_helpers._header_property`` | ||
* ``falcon.request_helpers.parse_cookie_header`` → | ||
``falcon.request_helpers._parse_cookie_header`` | ||
* ``falcon.response_helpers.format_content_disposition`` → | ||
``falcon.response_helpers._format_content_disposition`` | ||
* ``falcon.response_helpers.format_etag_header`` → | ||
``falcon.response_helpers._format_etag_header`` | ||
* ``falcon.response_helpers.format_header_value_list`` → | ||
``falcon.response_helpers._format_header_value_list`` | ||
* ``falcon.response_helpers.format_range`` → | ||
``falcon.response_helpers._format_range`` | ||
* ``falcon.response_helpers.header_property`` → | ||
``falcon.response_helpers._header_property`` | ||
* ``falcon.response_helpers.is_ascii_encodable`` → | ||
``falcon.response_helpers._is_ascii_encodable`` | ||
|
||
If you were relying on these internal helpers, you can either copy the | ||
implementation into your codebase, or switch to the underscored variants. | ||
(Needless to say, though, we strongly recommend against referencing private | ||
methods, as we provide no SemVer guarantees for them.) |
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.