starlette/tests
赖信涛 8e30f073f0 Do not read file for HEAD method on StaticFiles (#176)
* Do not read file for HEAD method on StaticFiles

* bugfix left in FileResponse

* add test for StaticFiles HEAD method

* restore aiofiles'open after testcase

* format code using black

* Send "http.response.body" instead of disconnect.

body default to b"";
more_body default to False;

fix testcase.

* rebase master, revert background task back

* update param name, send_header_only -> method

* No need to instantiate a new Request, just use scope

* style code using black
2018-11-08 16:59:00 +00:00
..
middleware Implement session expiry with configurable maximum age (#186) 2018-11-08 11:59:27 +00:00
test_applications.py Rejig ExceptionMiddleware and ServerErrorMiddleware (#193) 2018-11-08 11:59:15 +00:00
test_background.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
test_datastructures.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
test_endpoints.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
test_exceptions.py Remove redundant test cases 2018-11-08 12:33:58 +00:00
test_formparsers.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
test_graphql.py Drop add_graphql_route, in favor of more consistent API style (#170) 2018-11-01 12:52:16 +00:00
test_lifespan.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
test_requests.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
test_responses.py adds background task param to StreamingResponse and FileResponse (#167) 2018-11-05 11:38:05 +00:00
test_routing.py Finesse mount routing (#173) 2018-11-05 11:11:35 +00:00
test_schemas.py Add OpenAPIResponse, API Schema docs, etc... (#171) 2018-11-01 12:52:03 +00:00
test_staticfiles.py Do not read file for HEAD method on StaticFiles (#176) 2018-11-08 16:59:00 +00:00
test_templates.py Jinja2 (#198) 2018-11-08 16:14:14 +00:00
test_websockets.py Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00