Moved HttpClient to its own lib

This commit is contained in:
Stephan Hadinger 2021-09-03 08:53:42 +02:00
parent 8a1aca858e
commit 9731b3ea53
4 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,17 @@
{
"name": "HttpClient light for Berry",
"version": "1.0",
"description": "Forked version of Arduino HttpClient to support BearSSL instead of mbedTLS",
"license": "MIT",
"homepage": "https://github.com/arendst/Tasmota",
"frameworks": "*",
"platforms": "*",
"authors":
{
"name": "Stephan Hadinger",
"maintainer": true
},
"build": {
"flags": [ "-I$PROJECT_DIR/include" ]
}
}

View File

@ -40,7 +40,10 @@
#include <base64.h>
#include "HttpClientLight.h"
#ifdef USE_WEBCLIENT_HTTPS
#include "WiFiClientSecureLightBearSSL.h"
#endif // USE_WEBCLIENT_HTTPS
// #ifdef HTTPCLIENT_1_1_COMPATIBLE
class TransportTraits

View File

@ -23,7 +23,7 @@
#ifdef USE_WEBCLIENT
#include <berry.h>
#include <HttpClientLight.h>
#include "HttpClientLight.h"
String wc_UrlEncode(const String& text) {
const char hex[] = "0123456789ABCDEF";