1 #if !defined(_RADIOLIB_HTTP_H) 2 #define _RADIOLIB_HTTP_H 4 #include "../../TypeDef.h" 6 #if !defined(RADIOLIB_EXCLUDE_HTTP) 8 #include "../TransportLayer/TransportLayer.h" 35 int16_t
get(String& url, String& response);
46 int16_t
get(
const char* url, String& response);
61 int16_t
post(
const char* url,
const char* content, String& response,
const char* contentType =
"text/plain");
63 #ifndef RADIOLIB_GODMODE Provides common interface for protocols that run on modules with Internet connectivity, such as HTTP or MQTT. Because this class is used mainly as interface, all of its virtual members must be implemented in the module class.
Definition: TransportLayer.h:12
int16_t post(const char *url, const char *content, String &response, const char *contentType="text/plain")
Sends HTTP POST request.
Definition: HTTP.cpp:112
HTTPClient(TransportLayer *tl, uint16_t port=80)
Default constructor.
Definition: HTTP.cpp:4
Client for simple HTTP communication.
Definition: HTTP.h:15