httpbinx 1.8.0__tar.gz → 1.8.1__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.
Files changed (48) hide show
  1. {httpbinx-1.8.0 → httpbinx-1.8.1}/PKG-INFO +1 -1
  2. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/__init__.py +1 -1
  3. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/main.py +10 -0
  4. {httpbinx-1.8.0 → httpbinx-1.8.1}/pyproject.toml +1 -1
  5. {httpbinx-1.8.0 → httpbinx-1.8.1}/LICENSE +0 -0
  6. {httpbinx-1.8.0 → httpbinx-1.8.1}/README.md +0 -0
  7. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/cli.py +0 -0
  8. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/constants.py +0 -0
  9. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/examples/__init__.py +0 -0
  10. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/helpers.py +0 -0
  11. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/meta.py +0 -0
  12. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/__init__.py +0 -0
  13. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/anything.py +0 -0
  14. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/auth.py +0 -0
  15. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/cookies.py +0 -0
  16. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/dynamicdata.py +0 -0
  17. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/httpmethods.py +0 -0
  18. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/images.py +0 -0
  19. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/inspection/__init__.py +0 -0
  20. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/inspection/request.py +0 -0
  21. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/inspection/response.py +0 -0
  22. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/redirects.py +0 -0
  23. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/responseformats.py +0 -0
  24. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/routers/statuscodes.py +0 -0
  25. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/schemas.py +0 -0
  26. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/UTF-8-demo.txt +0 -0
  27. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/bombs/bomb-1GB.br +0 -0
  28. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/bombs/bomb-1GB.gz +0 -0
  29. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/favicon.png +0 -0
  30. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/images/httbinx_logo.png +0 -0
  31. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/images/httpbinx_cover.png +0 -0
  32. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/images/jackal.jpg +0 -0
  33. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/images/pig_icon.png +0 -0
  34. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/images/svg_logo.svg +0 -0
  35. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/static/images/wolf_1.webp +0 -0
  36. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/templates/moby.html +0 -0
  37. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/templates/sample.xml +0 -0
  38. {httpbinx-1.8.0 → httpbinx-1.8.1}/httpbinx/templates/trackingscripts.html +0 -0
  39. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/__init__.py +0 -0
  40. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/common.py +0 -0
  41. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_anything.py +0 -0
  42. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_dynamic_data.py +0 -0
  43. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_http_methods.py +0 -0
  44. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_images.py +0 -0
  45. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_redirects.py +0 -0
  46. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_request_inspection.py +0 -0
  47. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_response_formats.py +0 -0
  48. {httpbinx-1.8.0 → httpbinx-1.8.1}/tests/test_status_codes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: httpbinx
3
- Version: 1.8.0
3
+ Version: 1.8.1
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>
@@ -1,5 +1,5 @@
1
1
  from .main import app
2
2
 
3
- __version__ = '1.8.0'
3
+ __version__ = '1.8.1'
4
4
 
5
5
  app.version = __version__
@@ -1,6 +1,7 @@
1
1
  from pathlib import Path
2
2
 
3
3
  from fastapi import FastAPI
4
+ from fastapi.middleware.cors import CORSMiddleware
4
5
  from fastapi.staticfiles import StaticFiles
5
6
 
6
7
  from httpbinx.meta import get_tags_metadata
@@ -15,6 +16,15 @@ app = FastAPI(
15
16
  openapi_tags=get_tags_metadata()
16
17
  )
17
18
 
19
+ app.add_middleware(
20
+ CORSMiddleware,
21
+ allow_origins=['*'],
22
+ allow_credentials=True,
23
+ allow_methods=['*'],
24
+ allow_headers=['*'],
25
+
26
+ )
27
+
18
28
  # mount static files
19
29
  static_dir = Path(__file__).parent / 'static'
20
30
  app.mount(
@@ -34,7 +34,7 @@ classifiers = [
34
34
  "Programming Language :: Python :: 3.12",
35
35
  "License :: OSI Approved :: MIT License",
36
36
  ]
37
- version = "1.8.0"
37
+ version = "1.8.1"
38
38
 
39
39
  [project.license]
40
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