Skip to content

kulikov-mister/arequests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

☀️ arequests ☀️

async http-client on micropython for esp32 based on urequests

Shows an illustrated sun in light mode and a moon with stars in dark mode.

Desciption:

Requires uasyncio V3 or later.
Has optional urequests class to make usable synchronously.

Use import:

Synchronously: - from arequests import urequests as requests
or
Asynchronously: - import arequests as requests

Notes:

Default HTTP version - 1.1
HTTP methods: GET, HEAD, POST, PUT, DELETE.
Returns response with the following properties: content, status_code, reason, url, text, headers, encoder.
json from response by calling json() method: response.json()

Supported

  • supports headers
  • supports params
  • supports HTTP & HTTPS
  • supports сhunked data
  • supports redirects
  • supports timeout, default - 30 seconds
  • supports custom ports

  • Warning

    not supports large response due to lack of memory - will raise a ConnectionError.

    About

    async http-client on micropython for esp32

    Resources

    License

    Stars

    Watchers

    Forks

    Packages

    No packages published

    Languages