Add wrapper for HTTP
kevinhikaruevans opened this issue · 0 comments
kevinhikaruevans commented
- Create structs
http_message
with two smaller structs:request
andresponse
-
Consider somehow buffering the response body or implementing some reasonable IO paradigmgoing to have an independent buffer per socket -
DNS lookups and possibly caching on device? Is there a std MRU cache I could use here?DNSs can be handled transparently by the ESP32 by using the fqdn in theAT+CIPSTART
command - determine if DNS lookups are required or if they're handled transparently by
AT+CIPSTART
- check out how https://github.com/SharpCoder/esp8266-arduino/ is handling the
AT
commands (thanks Josh!) - refactor callbacks, maybe use return true/false when the request is done vs not done; add funct to check if OK/ERROR is sent or an enum?
-
add method of transactions, i.e. if sending multiple commands, if one command fails, it can return/fallbackwill do in the future - consider adding TCP handler and having HTTP implement that wrapper