Commit Graph
112 Commits
Author SHA1 Message Date
Hagai Shatz a01972c9e5 HTTP 302 and 304 Support
Add support for http redirection (302) and http not modified (304) to
reduce the load the server.
server.redirect(“url”, “location”, exclude-ip) will respond with 302 to
redirect the browser to a different url, this is useful for backward
compatibility and to redirect call to CDN when not no AP mode.
server.serveStatic has a new optional parameter to get the
Last-Modified date for all files serve for this location, when the
browser request have the same If-Modified-Since header value, the
server respond with 304 code instead of serving the file.
2016-06-12 11:52:38 +01:00
sticilface ba45a834e9 This handler will serve a 302 response to a client request for a SP… (#36)
*   This handler will serve a 302 response to a client request for a SPIFFS file if the request comes from the STA side of the ESP network.
  If the request comes from the AP side then it serves the file from SPIFFS.

* corrections.  plus readme

* Update README.md

extra space

* move wifi to cpp
2016-06-10 10:46:12 +03:00
Me No Dev bda2cd637a add WebSocket auto-ping option and fix pcb not being released properly on disconnect 2016-05-28 03:50:38 +03:00
Charles 26b2e2532b Added doc for ws.enable and ws.enabled (#33) 2016-05-25 21:13:26 +03:00
Me No Dev 2b501e74a7 add method to disable new connections to a WebSocket instance 2016-05-25 19:48:04 +03:00
Me No Dev 8171edd7e1 attempt fix on some edge cases
attempt to fix a case where \r can be missed and post not parsed
correctly
2016-05-20 00:55:20 +03:00
Me No Dev b64691d4f7 Add known libs and projects that use async web server 2016-05-16 12:25:55 +03:00
Me No Dev f5a68e3ff4 fix some readme typos 2016-05-15 03:49:38 +03:00
Me No Dev 8917b98332 update readme a bit 2016-05-15 03:42:27 +03:00
Charles 29b3f72e80 Added printf_P method (#31)
* Prevent buffer overflow on received data

* pass to 7 char to avoid save to flash by SDK

* return _contentLength, avoid array reparse to know len

* Added FlashStringHelper for text and binary

* Added FlashStringHelper also to AsyncWebSocketClient

* Added PROGMEM doc

* Corrected binary was sending PSTR as text, addded len

* Server calls client method and code as asked @me-no-dev

* server calls client method and code as asked by @me-no-dev

* Changed Code presentation

* Added printf_P methods
2016-05-15 03:00:33 +03:00
Me No Dev 937d442fce urlDecode the GET path 2016-05-13 00:41:21 +03:00
Me No Dev 7cb06b1bb1 fix typo 2016-05-13 00:19:50 +03:00
Me No Dev ffa893f770 Atempt at fixing large uploads
Fixing: https://github.com/me-no-dev/ESPAsyncWebServer/issues/29
2016-05-13 00:01:42 +03:00
Charles 1d275900eb Prevent Buffer Overflow and Added FlashStringHelper for text and binary (#26)
* Prevent buffer overflow on received data

* pass to 7 char to avoid save to flash by SDK

* return _contentLength, avoid array reparse to know len

* Added FlashStringHelper for text and binary

* Added FlashStringHelper also to AsyncWebSocketClient

* Added PROGMEM doc

* Corrected binary was sending PSTR as text, addded len

* Server calls client method and code as asked @me-no-dev

* server calls client method and code as asked by @me-no-dev

* Changed Code presentation
2016-05-12 15:17:35 +03:00
Me No Dev 95a14dbdf2 oops, not familiar with this 2016-05-10 11:47:22 +03:00
Me No Dev c22033258b add platformio support 2016-05-10 11:40:19 +03:00
Me No Dev 00f40c0608 Merge pull request #25 from hallard/master
avoid client ID being 0
2016-05-06 18:04:40 +03:00
Charles b1492fc213 avoid client ID being 0
Prevent having clientID set to 0
When managing an array of different clientID, it's preferable to a valid
client not having it's ID set to 0
2016-05-06 16:54:15 +02:00
Me No Dev 8dfd328627 quiet debug and add access to the AsyncClient and it's IP/Port 2016-05-03 04:49:51 +03:00
Me No Dev 060183974c return json object by default 2016-05-03 03:59:49 +03:00
Me No Dev d74a84455f AsyncJson: add option to init with root as json array
ref: https://github.com/bblanchon/ArduinoJson/issues/272
2016-05-02 19:54:37 +03:00
Me No Dev 59732a09bd add proper credits 2016-04-23 17:20:51 +03:00
Me No Dev 3c3f38e6f6 fix printf eating the last charecter 2016-04-23 16:11:57 +03:00
Me No Dev 9d9c2b7bf4 add WebSocket info to readme 2016-04-23 15:47:27 +03:00
Me No Dev a0d975c157 fix travis build 2016-04-23 15:19:56 +03:00
Me No Dev 8d67809acf Add AsyncWebSocket plugin 2016-04-23 15:11:32 +03:00
Me No Dev d65e4bd4e5 collect all headers for the default handler 2016-04-20 22:26:19 +03:00
Me No Dev c45b4002e5 fix leaked response if source is invalid 2016-04-11 21:42:37 +03:00
Me No Dev b1e1450bfb stability improvements for low memory 2016-04-08 17:43:16 +03:00
Me No Dev ced8ac1c4c Send as much as possible from the response with the headers
related to: https://github.com/me-no-dev/ESPAsyncWebServer/issues/15
2016-04-08 14:55:41 +03:00
Me No Dev c0fd47bbf9 Merge pull request #18 from andig/fix-lowmem
Gracefully handle out of memory
2016-04-07 13:41:44 +03:00
andig 9a291c876c Gracefully handle out of memory 2016-04-07 12:39:07 +02:00
Me No Dev 61d6de91a6 Update README.md 2016-04-07 12:23:51 +03:00
Me No Dev e871a222fc clean onError 2016-04-05 11:22:23 +03:00
Me No Dev 7e22511258 Merge pull request #17 from Hopperpop/master
Fix authenticate.
2016-03-19 00:20:38 +02:00
Hopperpop 046716556e Fix buffer overflow in authenticate. 2016-03-18 22:34:18 +01:00
Me No Dev 024add39d3 more readme changes 2016-02-09 03:21:48 +02:00
Me No Dev 2ad9a2d2b5 missed mistakes in README 2016-02-09 03:06:39 +02:00
Me No Dev c05f719f32 fix whatever went wrong the previous time 2016-02-09 02:56:01 +02:00
Me No Dev 3bc54a8071 Revert "Merge pull request #13 from me-no-dev/improved-parsing"
This reverts commit c95ac73753, reversing
changes made to 97c938803c.
2016-02-09 02:32:14 +02:00
Me No Dev c95ac73753 Merge pull request #13 from me-no-dev/improved-parsing
Rearrange and rename files and add index to chunked responses
2016-02-09 01:55:09 +02:00
Me No Dev c80722cf2f remove blank line 2016-02-09 01:54:25 +02:00
Me No Dev 9296fb1b1e get the toolchain from the repo 2016-02-09 01:51:36 +02:00
Me No Dev 40d5d4415e Rearrange and rename files and add index to chunked responses 2016-02-09 01:47:03 +02:00
Me No Dev 97c938803c add gitter web hook and hopefully fix the build for ESP31B 2016-02-01 20:16:32 +02:00
Me No Dev 260e55c0bb esp31b keeps failing
let's hope chmoding and using the 64 bit toolchain will help
2016-02-01 20:09:43 +02:00
Me No Dev 9161dc9a6e travis again 2016-02-01 20:03:16 +02:00
Me No Dev 000aa908ca Travis: missed to rename the folder 2016-02-01 19:59:11 +02:00
Me No Dev d589ce35f8 travis can not find the linux toolchain 2016-02-01 19:57:35 +02:00
Me No Dev ce901540d5 typo and reorganization 2016-02-01 19:51:37 +02:00