Arduino DLNA Server
|
Simple API to process get, put, post, del http requests I tried to use Arduino HttpClient, but I did not manage to extract the mime type from streaming get requests. More...
#include <HttpRequest.h>
Public Member Functions | |
HttpRequest () | |
HttpRequest (Client &client) | |
void | setClient (Client &client) |
void | setHost (const char *host) |
operator bool () | |
virtual bool | connected () |
virtual int | available () |
virtual void | stop () |
virtual int | post (Url &url, const char *mime, const char *data, int len=-1) |
virtual int | put (Url &url, const char *mime, const char *data, int len=-1) |
virtual int | del (Url &url, const char *mime=nullptr, const char *data=nullptr, int len=-1) |
virtual int | get (Url &url, const char *acceptMime=nullptr, const char *data=nullptr, int len=-1) |
virtual int | head (Url &url, const char *acceptMime=nullptr, const char *data=nullptr, int len=-1) |
virtual int | read (uint8_t *str, int len) |
virtual int | readln (uint8_t *str, int len, bool incl_nl=true) |
virtual HttpReplyHeader & | reply () |
virtual HttpRequestHeader & | request () |
virtual void | setAgent (const char *agent) |
virtual void | setConnection (const char *connection) |
virtual void | setAcceptsEncoding (const char *enc) |
Client * | client () |
Protected Member Functions | |
const char * | str (const char *in) |
virtual int | connect (const char *ip, uint16_t port) |
virtual int | process (TinyMethodID action, Url &url, const char *mime, const char *data, int len=-1) |
Protected Attributes | |
WiFiClient | default_client |
Client * | client_ptr |
Url | url |
HttpRequestHeader | request_header |
HttpReplyHeader | reply_header |
HttpChunkReader | chunk_reader {reply_header} |
Str | host_name |
const char * | agent = nullptr |
const char * | connection = CON_CLOSE |
const char * | accept = ACCEPT_ALL |
const char * | accept_encoding = nullptr |
Simple API to process get, put, post, del http requests I tried to use Arduino HttpClient, but I did not manage to extract the mime type from streaming get requests.
The functionality is based on the Arduino Client class.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |