Phil Jones

Results 47 issues of Phil Jones

It is (currently) Flask specific and hence cannot be shared in the sansio shared code. Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should...

The globals have a performance penalty which can be justified for the convinience in user code. In the app however the ctx can easily be passed through the method calls...

As after_request must run before the response has been sent, an after_response would be useful (and possible with ASGI) to run after the response has been sent.

```python import asyncio from quart import Quart, Response app = Quart(__name__) @app.route('/') async def sub(): response = Response( data_stream(), mimetype="text/event-stream", ) response.timeout = None return response async def data_stream(): try:...

This could happen for example with `min=0;max=500` as the `;` is not a word character everything before it is ignored in the regex during the finditer call. This then lefts...

As per pallets projects and modern practices.

This is to mitigate CVE-2019-9516, 0-Length Headers Leak. It will allow hpack users, such as hyper-h2, to close connections if this happens on the basis that the client is likely...

- [x] Stop altering the JSONProvider (do casing directly with dicts) - [ ] Document how to order the openapi schema routes - [ ] Document how to customise the...

How to indicate and type hint this? @validate_response(list[Model]) ??