38 bool isOk(
int code) {
return code >= 200 && code < 300; }
Simple API to process get, put, post, del http requests I tried to use Arduino HttpClient,...
Definition: HttpRequest.h:21
virtual int get(Url &url, const char *acceptMime=nullptr, const char *data=nullptr, int len=-1)
Definition: HttpRequest.h:75
Client * client()
Definition: HttpRequest.h:123
Forwards a request to a destination URL and provides a pointer to the result stream.
Definition: HttpTunnel.h:12
bool isOk(int code)
Definition: HttpTunnel.h:38
HttpRequest v_request
Definition: HttpTunnel.h:35
Url v_url
Definition: HttpTunnel.h:34
Stream * get()
Executes the get request.
Definition: HttpTunnel.h:21
const char * mime()
Definition: HttpTunnel.h:31
const char * v_mime
Definition: HttpTunnel.h:36
HttpRequest & request()
Definition: HttpTunnel.h:29
HttpTunnel(const char *url, const char *mime="text/html")
Definition: HttpTunnel.h:14
void log(DlnaLogLevel current_level, const char *fmt...)
Print log message.
Definition: Logger.h:40
URL parser which breaks a full url string up into its individual parts.
Definition: Url.h:18
void setUrl(const char *url)
Definition: Url.h:53
Definition: Allocator.h:6
@ DlnaInfo
Definition: Logger.h:16
LoggerClass DlnaLogger
Definition: Logger.cpp:5