Commit Graph

10 Commits

Author SHA1 Message Date
Daniel Hahler e0e2621add flake8 fixes (#512) 2019-05-13 15:22:59 +01:00
Tom Christie 4d5708e468
ASGI 3 (#435)
* TestClient supports ASGI2 and ASGI3

* Starlette instances present ASGI3 interface

* ServerErrorMiddleware presents ASGI3 interface

* Use ASGI3 protocol throughout

* Response signatures match ASGI interface.
2019-03-19 16:03:19 +00:00
Hiroyuki Tanaka 96d50862e4 Add content_type attribute to UploadFile (#371)
* Add content_type attribute to UploadFile

* Linting

* Change: default value of UploadFile.content_type is from None to empty string
2019-02-01 09:06:33 +00:00
Tom Christie 10b61f6cc2
Multi item form data (#339)
* Add a multidict FormData structure
2019-01-22 19:47:47 +00:00
Tom Christie 6488650855
Apply URL escaping to form encoded key names. (#318) 2019-01-14 12:28:16 +00:00
Mickaël Schoentgen 2e4a4d71a8 Fix several ResourceWarning: unclosed file (#310)
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-08 15:12:26 +00:00
Sebastián Ramírez a290bbf1a9 Fix multi field forms parsing after already having read the body (#287)
* Fix multi field forms parsing after already having read the body

* Lint / Format additional tests

* Remove unused test app section in form tests
2019-01-04 09:44:42 +00:00
Xavier Barbosa 5fcf4945e6 Fix mixed uploaded files and data (#277)
* Fix mixed uploaded files and data

* dropped requirement to requests_toolbelt
2018-12-18 10:26:06 +00:00
Tom Christie bcf876c686
Use isort for consistent import ordering (#156) 2018-10-29 14:46:42 +00:00
Tom Christie c43a070eed
Form parsing (#102)
* Work towards MultiPartParser

* Work towards MultiPartParser

* Add test for multipart files

* MultiPart parsing

* Fix for large multipart messages

* Add python-multipart to docs

* Add python-multipart to 'pip install starlette[full]'

* Add FormParser

* Add docs for request.form()

* Drop mypy momentarily
2018-10-12 18:15:04 +01:00