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

A mixture of urequests and uaiohttpclient, with my tweaks.

Notifications You must be signed in to change notification settings

hyx0329/micropython-uicefox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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?

About

A mixture of urequests and uaiohttpclient, with my tweaks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages