Skip to content
This repository was archived by the owner on Jan 29, 2023. It is now read-only.

Commit d200298

Browse files
authored
v1.6.0 to save heap when sending large data
### Releases v1.6.0 1. Support using `CString` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](khoih-prog/Portenta_H7_AsyncWebServer#8) 2. Add functions and example `Async_AdvancedWebServer_favicon` to support `favicon.ico` 3. Add multiple examples to demo the new feature 4. Fix issue with slow browsers or network 5. Change license from `MIT` to `GPLv3` to match with original [ESPAsyncWebServer](https://github.com/me-no-dev/ESPAsyncWebServer) license
1 parent c14f228 commit d200298

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ This is very critical in use-cases where sending `very large data` is necessary,
173173

174174
1. The traditional function used to send `Arduino String` is
175175

176-
https://github.com/khoih-prog/AsyncWebServer_STM32/blob/9f07bf58ba355b869d57c0d4adfe3da64d500a97/src/AsyncWebServer_STM32.h#L424
176+
https://github.com/khoih-prog/AsyncWebServer_STM32/blob/c14f228c37fefaaa6516c09eebad1b1ab90c8069/src/AsyncWebServer_STM32.h#L424
177177

178178
```cpp
179179
void send(int code, const String& contentType = String(), const String& content = String());
@@ -189,10 +189,10 @@ The required additional HEAP is about **2 times of the String size**
189189

190190
2. To use `CString` with copying while sending. Use function
191191

192-
https://github.com/khoih-prog/AsyncWebServer_STM32/blob/9f07bf58ba355b869d57c0d4adfe3da64d500a97/src/AsyncWebServer_STM32.h#L425
192+
https://github.com/khoih-prog/AsyncWebServer_STM32/blob/c14f228c37fefaaa6516c09eebad1b1ab90c8069/src/AsyncWebServer_STM32.h#L425
193193

194194
```cpp
195-
void send(int code, const String& contentType, const char *content, bool nonCopyingSend = true); // RSMOD
195+
void send(int code, const String& contentType, const char *content, bool copyingSend = true); // RSMOD
196196
```
197197
198198
such as
@@ -206,10 +206,10 @@ The required additional HEAP is also about **2 times of the CString size** becau
206206

207207
3. To use `CString` without copying while sending. Use function
208208

209-
https://github.com/khoih-prog/AsyncWebServer_STM32/blob/9f07bf58ba355b869d57c0d4adfe3da64d500a97/src/AsyncWebServer_STM32.h#L425
209+
https://github.com/khoih-prog/AsyncWebServer_STM32/blob/c14f228c37fefaaa6516c09eebad1b1ab90c8069/src/AsyncWebServer_STM32.h#L425
210210

211211
```cpp
212-
void send(int code, const String& contentType, const char *content, bool nonCopyingSend = true); // RSMOD
212+
void send(int code, const String& contentType, const char *content, bool copyingSend = true); // RSMOD
213213
```
214214
215215
such as

0 commit comments

Comments
 (0)