|
bool | begin (String url) |
|
bool | begin (String url, const char *CAcert) |
|
bool | begin (String host, uint16_t port, String uri="/") |
|
bool | begin (String host, uint16_t port, String uri, const char *CAcert) |
|
bool | begin (String host, uint16_t port, String uri, const char *CAcert, const char *cli_cert, const char *cli_key) |
|
void | end (void) |
|
bool | connected (void) |
|
void | setReuse (bool reuse) |
|
void | setUserAgent (const String &userAgent) |
| keep-alive
|
|
void | setAuthorization (const char *user, const char *password) |
|
void | setAuthorization (const char *auth) |
|
void | setTimeout (uint16_t timeout) |
|
void | useHTTP10 (bool usehttp10=true) |
|
int | GET () |
| request handling
|
|
int | POST (uint8_t *payload, size_t size) |
|
int | POST (String payload) |
|
int | PUT (uint8_t *payload, size_t size) |
|
int | PUT (String payload) |
|
int | sendRequest (const char *type, String payload) |
|
int | sendRequest (const char *type, uint8_t *payload=NULL, size_t size=0) |
|
int | sendRequest (const char *type, Stream *stream, size_t size=0) |
|
void | addHeader (const String &name, const String &value, bool first=false, bool replace=true) |
|
void | collectHeaders (const char *headerKeys[], const size_t headerKeysCount) |
| Response handling.
|
|
String | header (const char *name) |
|
String | header (size_t i) |
|
String | headerName (size_t i) |
|
int | headers () |
|
bool | hasHeader (const char *name) |
|
int | getSize (void) |
|
TCPClient * | getStreamPtr (void) |
|
int | writeToStream (Stream *stream) |
|
String | getString (void) |
|