esp-rs / esp-idf-svc

Type-Safe Rust Wrappers for various ESP-IDF services (WiFi, Network, Httpd, Logging, etc.)
https://docs.esp-rs.org/esp-idf-svc/
Apache License 2.0
285 stars 161 forks source link

Feature Request: Async HTTP and WebSocket clients #392

Closed JadKHaddad closed 3 months ago

JadKHaddad commented 3 months ago

Hello, It would be very helpful to add support for async HTTP and WebSocket clients as I've spent the last week trying to make async HTTP requests with TLS support work, attempting various libraries such as reqwest, reqwless, and embassy net, but unfortunately, nothing worked.

ivmarkov commented 3 months ago

The HTTP clients and esp. the WS client in ESP IDF are not really async, and would be difficult to make them behave like one. You are better off trying some of the pure Rust async HTTP and WS clients in top of ESP IDF's AsyncEspTls async TLS client. Like edge-http and edge-ws.