httpbinx 1.9.0__tar.gz → 1.10.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.
- {httpbinx-1.9.0 → httpbinx-1.10.0}/PKG-INFO +3 -4
- {httpbinx-1.9.0 → httpbinx-1.10.0}/README.md +1 -1
- httpbinx-1.10.0/httpbinx/__init__.py +7 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/inspection/response.py +2 -3
- {httpbinx-1.9.0 → httpbinx-1.10.0}/pyproject.toml +2 -3
- httpbinx-1.9.0/httpbinx/__init__.py +0 -5
- {httpbinx-1.9.0 → httpbinx-1.10.0}/LICENSE +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/cli.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/constants.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/examples/__init__.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/helpers.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/main.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/meta.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/__init__.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/anything.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/auth.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/cookies.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/dynamicdata.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/httpmethods.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/images.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/inspection/__init__.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/inspection/request.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/redirects.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/responseformats.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/routers/statuscodes.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/schemas.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/UTF-8-demo.txt +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/bombs/bomb-1GB.br +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/bombs/bomb-1GB.gz +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/favicon.png +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/httbinx_logo.png +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/httpbinx_cover.png +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/jackal.jpg +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/pig_icon.png +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/svg_logo.svg +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/static/images/wolf_1.webp +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/templates/moby.html +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/templates/sample.xml +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/httpbinx/templates/trackingscripts.html +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/__init__.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/common.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_anything.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_dynamic_data.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_http_methods.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_images.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_redirects.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_request_inspection.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_response_formats.py +0 -0
- {httpbinx-1.9.0 → httpbinx-1.10.0}/tests/test_status_codes.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: httpbinx
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.10.0
|
|
4
4
|
Summary: HTTP Request & Response Service, written in Python + FastAPI.
|
|
5
5
|
Author-Email: Leo <imleowoo@outlook.com>
|
|
6
6
|
Maintainer-Email: Leo <imleowoo@outlook.com>
|
|
@@ -28,7 +28,6 @@ License: MIT License
|
|
|
28
28
|
|
|
29
29
|
Classifier: Programming Language :: Python
|
|
30
30
|
Classifier: Programming Language :: Python :: 3
|
|
31
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
32
31
|
Classifier: Programming Language :: Python :: 3.10
|
|
33
32
|
Classifier: Programming Language :: Python :: 3.11
|
|
34
33
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -37,7 +36,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
37
36
|
Classifier: License :: OSI Approved :: MIT License
|
|
38
37
|
Project-URL: Homepage, https://github.com/imleowoo/httpbinx
|
|
39
38
|
Project-URL: Repository, https://github.com/imleowoo/httpbinx
|
|
40
|
-
Requires-Python: >=3.
|
|
39
|
+
Requires-Python: >=3.10
|
|
41
40
|
Requires-Dist: fastapi
|
|
42
41
|
Requires-Dist: uvicorn
|
|
43
42
|
Requires-Dist: starlette
|
|
@@ -55,7 +54,7 @@ Description-Content-Type: text/markdown
|
|
|
55
54
|
](https://raw.githubusercontent.com/imleowoo/httpbinx/main/httpbinx/static/images/httpbinx_cover.png)
|
|
56
55
|
|
|
57
56
|
[](https://github.com/postmanlabs/httpbin)
|
|
58
|
-

|
|
59
58
|
|
|
60
59
|
# httpbinx
|
|
61
60
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
](https://raw.githubusercontent.com/imleowoo/httpbinx/main/httpbinx/static/images/httpbinx_cover.png)
|
|
2
2
|
|
|
3
3
|
[](https://github.com/postmanlabs/httpbin)
|
|
4
|
-

|
|
5
5
|
|
|
6
6
|
# httpbinx
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ from starlette.requests import Request
|
|
|
9
9
|
from httpbinx.helpers import parse_multi_value_header, status_code_response
|
|
10
10
|
from httpbinx.routers import httpmethods
|
|
11
11
|
|
|
12
|
-
router = APIRouter(tags=['Response inspection'],)
|
|
12
|
+
router = APIRouter(tags=['Response inspection'], )
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
@router.get(
|
|
@@ -20,8 +20,7 @@ router = APIRouter(tags=['Response inspection'],)
|
|
|
20
20
|
)
|
|
21
21
|
async def cache(request: Request):
|
|
22
22
|
# https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Headers/If-Modified-Since
|
|
23
|
-
is_conditional = request.headers.get('If-Modified-Since') or
|
|
24
|
-
request.headers.get('If-None-Match')
|
|
23
|
+
is_conditional = request.headers.get('If-Modified-Since') or request.headers.get('If-None-Match')
|
|
25
24
|
if is_conditional is None:
|
|
26
25
|
response = await httpmethods.get(request)
|
|
27
26
|
response.headers['Last-Modified'] = formatdate()
|
|
@@ -9,7 +9,7 @@ name = "httpbinx"
|
|
|
9
9
|
dynamic = []
|
|
10
10
|
description = "HTTP Request & Response Service, written in Python + FastAPI."
|
|
11
11
|
readme = "README.md"
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.10"
|
|
13
13
|
dependencies = [
|
|
14
14
|
"fastapi",
|
|
15
15
|
"uvicorn",
|
|
@@ -27,7 +27,6 @@ maintainers = [
|
|
|
27
27
|
classifiers = [
|
|
28
28
|
"Programming Language :: Python",
|
|
29
29
|
"Programming Language :: Python :: 3",
|
|
30
|
-
"Programming Language :: Python :: 3.9",
|
|
31
30
|
"Programming Language :: Python :: 3.10",
|
|
32
31
|
"Programming Language :: Python :: 3.11",
|
|
33
32
|
"Programming Language :: Python :: 3.12",
|
|
@@ -35,7 +34,7 @@ classifiers = [
|
|
|
35
34
|
"Programming Language :: Python :: 3.14",
|
|
36
35
|
"License :: OSI Approved :: MIT License",
|
|
37
36
|
]
|
|
38
|
-
version = "1.
|
|
37
|
+
version = "1.10.0"
|
|
39
38
|
|
|
40
39
|
[project.license]
|
|
41
40
|
file = "LICENSE"
|
|
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
|