RadioLibSmol/src/protocols/HTTP.h
2018-07-23 12:41:24 +02:00

22 lines
470 B
C++

#ifndef _KITELIB_HTTP_H
#define _KITELIB_HTTP_H
#include "TypeDef.h"
#include "TransportLayer.h"
class HTTPClient {
public:
// constructor
HTTPClient(TransportLayer* tl, uint16_t port = 80);
// basic methods
int16_t get(const char* url, String& response);
int16_t post(const char* url, const char* content, String& response, const char* contentType = "text/plain");
private:
TransportLayer* _tl;
uint16_t _port;
};
#endif