Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Latest commit

 

History

History
33 lines (22 loc) · 962 Bytes

README.md

File metadata and controls

33 lines (22 loc) · 962 Bytes

uicefox

This is an async client for http connections on MicroPython. It is basically a mixture of urequests and uaiohttpclient.

What it can do

  • http requests
  • https requests
  • payload, headers, etc. (not tested)
  • handle chunked http packages (not tested)
  • correctly handle Content-Length
  • expose a Stream object to make process-on-receive possible
  • expose a ChunkedWriter to send chunked packegs(use uicefox.request_raw directly)

How to use

The code tells everything. Docs are not planned for the moment. Take the test script as an example.

Notes

Better to "close" the response object (call await resp.close()), I don't know what will happen if not.

TODO

  • handle chunked request
  • better handling of chunked response
  • performance & memory usage optimization

About the name

I use Firefox's UA, so I call it icefox, but add u as prefix following the conventions. It looks like nicefox, isn't it?