kopia lustrzana https://github.com/micropython/micropython-lib
![]() The requests() function takes a headers dict argument (call-by-reference). This object is then modified in the function. For instance the host is added and authentication information. Such behavior is not expected. It is also problematic: - Modifications of the header dictionary will be visible on the caller site. - When reusing the same (supposedly read-only) headers object for differenct calls, the second call will apparently re-use wrong headers from the previous call and may fail. This patch should also fix #839. Unfortunately the copy operation does not preserve the key order and we have to touch the existing test cases. Signed-off-by: Richard Weickelt <richard@weickelt.de> |
||
---|---|---|
.. | ||
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.