mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-28 05:01:28 +03:00
various minor web fixes (#8885)
* httpclient: use refs - httpserver: add chunks in examples * basic https client: update cert * debug log: read() returning -1 is usual and means "nothing to read" * emulation on host: SSL server has never been and is now working * style * move SSL server certs from examples into a single place with appropriate warnings * web-hello-servers: make chunks bigger * factorize template declaration * http-client: add getString(pre-reservation) * mock: add umm_info() * style * comment API in example * style * fix per review
This commit is contained in:
@ -203,9 +203,9 @@ public:
|
||||
|
||||
/// Response handling
|
||||
void collectHeaders(const char* headerKeys[], const size_t headerKeysCount);
|
||||
String header(const char* name); // get request header value by name
|
||||
String header(size_t i); // get request header value by number
|
||||
String headerName(size_t i); // get request header name by number
|
||||
const String& header(const char* name); // get request header value by name
|
||||
const String& header(size_t i); // get request header value by number
|
||||
const String& headerName(size_t i); // get request header name by number
|
||||
int headers(); // get header count
|
||||
bool hasHeader(const char* name); // check if header exists
|
||||
|
||||
@ -217,7 +217,13 @@ public:
|
||||
WiFiClient* getStreamPtr(void);
|
||||
template <typename S> int writeToPrint(S* print) [[deprecated]] { return writeToStream(print); }
|
||||
template <typename S> int writeToStream(S* output);
|
||||
const String& getString(void);
|
||||
|
||||
// In case of chunks = when size cannot be known in advance
|
||||
// by the library, it might be useful to pre-reserve enough
|
||||
// space instead of offending memory with a growing String
|
||||
const String& getString() { return getString(0); }
|
||||
const String& getString(int reserve);
|
||||
|
||||
static String errorToString(int error);
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user