yhttp 9.2.0__tar.gz → 9.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {yhttp-9.2.0 → yhttp-9.3.0}/PKG-INFO +1 -1
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_request.py +1 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/request.py +15 -0
- yhttp-9.3.0/yhttp/core/version.py +1 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp.egg-info/PKG-INFO +1 -1
- yhttp-9.2.0/yhttp/core/version.py +0 -1
- {yhttp-9.2.0 → yhttp-9.3.0}/LICENSE +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/README.md +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/setup.cfg +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/setup.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_application.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_applicationcli.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_builtincli_serve.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_builtincli_version.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_builtincli_yhttp_version.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_cookie.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_cookieset.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_extension.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_form.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_form_json.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_form_multipart.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_form_urlencoded.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_fswatcher.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_guard.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_guard_body.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_guard_contenttypes.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_guard_query.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_headerset.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_jsonencoding.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_locale.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_middleware.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_multidict.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_multipart.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_querystring.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_responseheaders.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_rewrite.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_rewritecli.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_routing.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_static.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_statuses.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/tests/test_statushandler.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/__init__.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/application.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/cli.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/contenttypes.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/cookieset.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/fswatcher.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/guard.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/headerset.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/main.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/multidict.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/multipart.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/response.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/rewrite.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/static.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp/core/statuses.py +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp.egg-info/SOURCES.txt +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp.egg-info/dependency_links.txt +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp.egg-info/entry_points.txt +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp.egg-info/requires.txt +0 -0
- {yhttp-9.2.0 → yhttp-9.3.0}/yhttp.egg-info/top_level.txt +0 -0
|
@@ -37,6 +37,21 @@ class Request:
|
|
|
37
37
|
self.environ = environ
|
|
38
38
|
self.response = response
|
|
39
39
|
|
|
40
|
+
@cached_property
|
|
41
|
+
def locales_oldstyle(self):
|
|
42
|
+
"""Same as the :attr:`Request.locales` but in old-style(system) format.
|
|
43
|
+
|
|
44
|
+
It means the dash(`-`) replaced with underscore(`_`) in all entries.
|
|
45
|
+
for example it returns `fa_IR` instead of `fa-IR`.
|
|
46
|
+
|
|
47
|
+
It will be ``['*']`` if ``Accept-Languages`` header is not presents in
|
|
48
|
+
the request.
|
|
49
|
+
|
|
50
|
+
.. versionadded:: 9.3
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
return [locale.replace('-', '_') for locale in self.locales]
|
|
54
|
+
|
|
40
55
|
@cached_property
|
|
41
56
|
def locales(self):
|
|
42
57
|
"""List of agent's locales ordered based on priority.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '9.3.0'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '9.2.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|