uvicorn 0.28.0__tar.gz → 0.28.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 (45) hide show
  1. {uvicorn-0.28.0 → uvicorn-0.28.1}/PKG-INFO +2 -2
  2. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/__init__.py +1 -1
  3. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/http/h11_impl.py +1 -4
  4. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/http/httptools_impl.py +2 -10
  5. {uvicorn-0.28.0 → uvicorn-0.28.1}/.gitignore +0 -0
  6. {uvicorn-0.28.0 → uvicorn-0.28.1}/LICENSE.md +0 -0
  7. {uvicorn-0.28.0 → uvicorn-0.28.1}/README.md +0 -0
  8. {uvicorn-0.28.0 → uvicorn-0.28.1}/pyproject.toml +0 -0
  9. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/__main__.py +0 -0
  10. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/_subprocess.py +0 -0
  11. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/_types.py +0 -0
  12. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/config.py +0 -0
  13. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/importer.py +0 -0
  14. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/lifespan/__init__.py +0 -0
  15. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/lifespan/off.py +0 -0
  16. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/lifespan/on.py +0 -0
  17. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/logging.py +0 -0
  18. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/loops/__init__.py +0 -0
  19. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/loops/asyncio.py +0 -0
  20. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/loops/auto.py +0 -0
  21. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/loops/uvloop.py +0 -0
  22. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/main.py +0 -0
  23. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/middleware/__init__.py +0 -0
  24. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/middleware/asgi2.py +0 -0
  25. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/middleware/message_logger.py +0 -0
  26. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/middleware/proxy_headers.py +0 -0
  27. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/middleware/wsgi.py +0 -0
  28. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/__init__.py +0 -0
  29. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/http/__init__.py +0 -0
  30. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/http/auto.py +0 -0
  31. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/http/flow_control.py +0 -0
  32. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/utils.py +0 -0
  33. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/websockets/__init__.py +0 -0
  34. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/websockets/auto.py +0 -0
  35. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/websockets/websockets_impl.py +0 -0
  36. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/protocols/websockets/wsproto_impl.py +0 -0
  37. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/py.typed +0 -0
  38. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/server.py +0 -0
  39. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/supervisors/__init__.py +0 -0
  40. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/supervisors/basereload.py +0 -0
  41. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/supervisors/multiprocess.py +0 -0
  42. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/supervisors/statreload.py +0 -0
  43. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/supervisors/watchfilesreload.py +0 -0
  44. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/supervisors/watchgodreload.py +0 -0
  45. {uvicorn-0.28.0 → uvicorn-0.28.1}/uvicorn/workers.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: uvicorn
3
- Version: 0.28.0
3
+ Version: 0.28.1
4
4
  Summary: The lightning-fast ASGI server.
5
5
  Project-URL: Changelog, https://github.com/encode/uvicorn/blob/master/CHANGELOG.md
6
6
  Project-URL: Funding, https://github.com/sponsors/encode
@@ -1,5 +1,5 @@
1
1
  from uvicorn.config import Config
2
2
  from uvicorn.main import Server, main, run
3
3
 
4
- __version__ = "0.28.0"
4
+ __version__ = "0.28.1"
5
5
  __all__ = ["main", "run", "Config", "Server"]
@@ -27,7 +27,6 @@ from uvicorn.protocols.http.flow_control import (
27
27
  service_unavailable,
28
28
  )
29
29
  from uvicorn.protocols.utils import (
30
- ClientDisconnected,
31
30
  get_client_addr,
32
31
  get_local_addr,
33
32
  get_path_with_query_string,
@@ -408,8 +407,6 @@ class RequestResponseCycle:
408
407
  result = await app( # type: ignore[func-returns-value]
409
408
  self.scope, self.receive, self.send
410
409
  )
411
- except ClientDisconnected:
412
- pass
413
410
  except BaseException as exc:
414
411
  msg = "Exception in ASGI application\n"
415
412
  self.logger.error(msg, exc_info=exc)
@@ -458,7 +455,7 @@ class RequestResponseCycle:
458
455
  await self.flow.drain()
459
456
 
460
457
  if self.disconnected:
461
- raise ClientDisconnected
458
+ return
462
459
 
463
460
  if not self.response_started:
464
461
  # Sending response status line and headers
@@ -29,7 +29,6 @@ from uvicorn.protocols.http.flow_control import (
29
29
  service_unavailable,
30
30
  )
31
31
  from uvicorn.protocols.utils import (
32
- ClientDisconnected,
33
32
  get_client_addr,
34
33
  get_local_addr,
35
34
  get_path_with_query_string,
@@ -412,8 +411,6 @@ class RequestResponseCycle:
412
411
  result = await app( # type: ignore[func-returns-value]
413
412
  self.scope, self.receive, self.send
414
413
  )
415
- except ClientDisconnected:
416
- pass
417
414
  except BaseException as exc:
418
415
  msg = "Exception in ASGI application\n"
419
416
  self.logger.error(msg, exc_info=exc)
@@ -462,7 +459,7 @@ class RequestResponseCycle:
462
459
  await self.flow.drain()
463
460
 
464
461
  if self.disconnected:
465
- raise ClientDisconnected
462
+ return
466
463
 
467
464
  if not self.response_started:
468
465
  # Sending response status line and headers
@@ -573,11 +570,6 @@ class RequestResponseCycle:
573
570
 
574
571
  if self.disconnected or self.response_complete:
575
572
  return {"type": "http.disconnect"}
576
-
577
- message: HTTPRequestEvent = {
578
- "type": "http.request",
579
- "body": self.body,
580
- "more_body": self.more_body,
581
- }
573
+ message: HTTPRequestEvent = {"type": "http.request", "body": self.body, "more_body": self.more_body}
582
574
  self.body = b""
583
575
  return message
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