Commit Graph
28 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
Charles 26b2e2532b Added doc for ws.enable and ws.enabled (#33) 2016-05-25 21:13:26 +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
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 9d9c2b7bf4 add WebSocket info to readme 2016-04-23 15:47:27 +03:00
Me No Dev 61d6de91a6 Update README.md 2016-04-07 12:23:51 +03: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 40d5d4415e Rearrange and rename files and add index to chunked responses 2016-02-09 01:47:03 +02:00
Me No Dev c6decb73a3 Add travis build status 2016-02-01 18:39:46 +02:00
Me No Dev 09a3b9d3e8 readme add more Json stuff 2016-02-01 03:30:11 +02:00
Me No Dev f8deeee5bc Make response stream to not require content length
Update the example in ReadMe as well
2016-02-01 03:03:59 +02:00
Me No Dev d295256694 readme: fix buffers, add links 2016-02-01 02:09:49 +02:00
Me No Dev a2ac3c9102 update readme style and add some bad techniques 2016-02-01 01:54:52 +02:00
Me No Dev b84fc1c976 fix chunked output 2016-02-01 01:08:33 +02:00
Me No Dev 085c280e6a readme edit: add missing request reference 2016-02-01 00:24:51 +02:00
Me No Dev c3a6cc8f1d add the callbacks so it will compile copy/pasted 2016-01-31 19:09:59 +02:00
Me No Dev ca9bcee8fa Add server setup to readme 2016-01-31 18:53:15 +02:00
Me No Dev 9e79985575 ReadMe update 2016-01-31 17:15:23 +02:00
The Gitter Badger 8e5e815aa2 Add Gitter badge 2016-01-27 17:50:26 +00:00
Me No Dev 4a5f64de03 add link to the TCP library and warning 2016-01-27 16:29:41 +02:00
Me No Dev e6a5d1b920 add readme 2015-12-19 19:53:29 +02:00