Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chunked encoding #2199

Merged
merged 16 commits into from
Jun 28, 2016
Merged

Chunked encoding #2199

merged 16 commits into from
Jun 28, 2016

Conversation

me-no-dev
Copy link
Collaborator

@me-no-dev me-no-dev commented Jun 27, 2016

example:

server.on("/chunked", HTTP_GET, [](){
  server.setContentLength(CONTENT_LENGTH_UNKNOWN);
  server.send(200);
  server.sendContent("<!DOCTYPE html><html><head><title>Chunked
Test</title></head><body>");
  server.sendContent("<p>Chunk 1</p>");
  server.sendContent("<p>Chunk 2</p>");
  server.sendContent("<p>Chunk 3</p>");
  server.sendContent("<p>Chunk 4</p>");
  server.sendContent("<p>Chunk 5</p>");
  server.sendContent("<p>Chunk 6</p>");
  server.sendContent("</html>");
  //not terminating will lead to the same 2 second delay as before
  server.sendContent("");//end of chunked (browser will close immediately)
});

Me No Dev added 13 commits April 20, 2016 12:57
example:
```cpp
  server.on("/chunked", HTTP_GET, [](){
    server.send(200, "text/html", String());
    server.sendContent("<!DOCTYPE html><html><head><title>Chunked
Test</title></head><body>");
    server.sendContent("<p>Chunk 1</p>");
    server.sendContent("<p>Chunk 2</p>");
    server.sendContent("<p>Chunk 3</p>");
    server.sendContent("<p>Chunk 4</p>");
    server.sendContent("<p>Chunk 5</p>");
    server.sendContent("<p>Chunk 6</p>");
    server.sendContent("</html>");
    server.sendContent("");//end of chunked
  });
```
@codecov-io
Copy link

codecov-io commented Jun 27, 2016

Current coverage is 27.86%

Merging #2199 into master will not change coverage

@@             master      #2199   diff @@
==========================================
  Files            20         20          
  Lines          3653       3653          
  Methods         335        335          
  Messages          0          0          
  Branches        675        675          
==========================================
  Hits           1018       1018          
  Misses         2457       2457          
  Partials        178        178          

Powered by Codecov. Last updated by 6d3109e...85a9f08

@igrr igrr merged commit 6390cf6 into esp8266:master Jun 28, 2016
@me-no-dev me-no-dev deleted the chunked-encoding branch July 4, 2016 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants