Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Websocket Denial Response #1478

Closed
wants to merge 9 commits into from

Commits on Feb 9, 2022

  1. Added WebsocketDenialResponse class

    It allows returning regular HTTP Response to a websocket request (if the ASGI Websocket Denial Response extension is supported, otherwise just closes with code 403 as before)
    paulo-raca committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    f99f1ad View commit details
    Browse the repository at this point in the history
  2. Update HTTPSRedirectMiddleware to support WebsocketDenialResponse

    The current implementation was broken when used with websockets
    
    This URL mapping logic has also been update:
    - Fixing a few minor bugs
    - It is now possible to specify the HTTP/HTTPS port mapping (e.g. 80/443, 8080/8443, etc)
    paulo-raca committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    a733ef2 View commit details
    Browse the repository at this point in the history
  3. Refactor ExceptionMiddleware and ServerErrorMiddleware

    - Both classes now share a common superclass, BaseExceptionMiddleware, which takes care of most of the logic
    - Added ExceptionTypeOrStatusCode and ExceptionHandler to help on typing hints
    - Error handlers now take a HTTPConnection instead of a Request
    - Support for WebsocketDenialResponse
    paulo-raca committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    41cf430 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7955926 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Configuration menu
    Copy the full SHA
    972d056 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. Address lint errors

    paulo-raca committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    9d0401e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a7e455 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2022

  1. Configuration menu
    Copy the full SHA
    bb64cf9 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2022

  1. Configuration menu
    Copy the full SHA
    361dd35 View commit details
    Browse the repository at this point in the history