]> git.ipfire.org Git - thirdparty/starlette.git/commit
Allow to raise `HTTPException` before `websocket.accept()` (#2725)
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Tue, 15 Oct 2024 07:50:49 +0000 (09:50 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Oct 2024 07:50:49 +0000 (09:50 +0200)
commit99b6938363c2e5b05a53ef5558c511fed61fbfb4
tree39865110072b98500afeee688fb193b485dfb529
parent4ded4b7ac517bd301cee69f5c189b1cb48c069b6
Allow to raise `HTTPException` before `websocket.accept()` (#2725)

* Allow to raise `HTTPException` before `websocket.accept()`

* move <<

* Add documentation
docs/exceptions.md
starlette/_exception_handler.py
starlette/testclient.py
tests/test_applications.py
tests/test_exceptions.py