kopia lustrzana https://github.com/micropython/micropython-lib
![]() This removes all the hard-coded request headers from the requests module so they can be overridden by user provided headers dict. Furthermore allow streaming request data without chunk encoding in those cases where content length is known but it's not desirable to load the whole content into memory. Also some servers (e.g. nginx) reject HTTP/1.0 requests with the Transfer-Encoding header set. The change should be backwards compatible as long as the user hasn't provided any of the previously hard-coded headers. Signed-off-by: Mirza Kapetanovic <mirza.kapetanovic@gmail.com> |
||
---|---|---|
.. | ||
requests | ||
README.md | ||
example_xively.py | ||
manifest.py | ||
test_requests.py |
README.md
requests
This module provides a lightweight version of the Python requests library.
It includes support for all HTTP verbs, https, json decoding of responses, redirects, basic authentication.
Limitations
- Certificate validation is not currently supported.
- A dictionary passed as post data will not do automatic JSON or multipart-form encoding of post data (this can be done manually).
- Compressed requests/responses are not currently supported.
- File upload is not supported.
- Chunked encoding in responses is not supported.