Fast ASGI web framework for Python
list[T]
and tuple[T]
when defining query string
parameters. Reported by @ranggakd.APP_SIGNAL_HANDLER=1
. The is_stopping
function is modified to
work only when the option is enabled. Issue reported by @netanel-haber.black
version and format files accordingly.SIGINT
or a SIGTERM
command (from blacksheep.server.process import is_stopping
).Refer to the BlackSheep documentation and to the examples repository for more information on server-sent events support.
is_disconnected()
method to the Request
class, similar to the one available in Starlette
, which answers if the ASGI server published an http.disconnected
message for a request. Feature requested by @netanel-haber in #452.receive
callable of the ASGI
request accessible to Python code, through the existing ASGIContent
class. The receive
property was already included in contents.pyi
file and it was wrong to keep receive
private for Cython code.consts.pxi
because it used a deprecated Cython feature.Response
class.Application
class code to be more explicit about the fact that certain methods must return None (return in call is used to interrupt code execution and not to return objects).blacksheep.utils
.Access-Control-Allow-Credentials
response header
in CORS responses after successful pre-flight requests. Reported by @waweberAccess-Control-Allow-Credentials
response header
in CORS responses after successful pre-flight requests. Reported by @waweberrefresh_token
endpoint for OpenID Connect
integrations to not work when authentication is required by default.Router
uvicorn
used programmatically
and reloading the application object more than once in the same process.route
method from the Application
class, and move it to the
Router
class to be consistent with other methods to register request
handlers.ClientConnectionPool
and ClientConnectionPools
aliases.