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

add appendContent #3146

Closed
wants to merge 2 commits into from
Closed

add appendContent #3146

wants to merge 2 commits into from

Conversation

txiaocao
Copy link

@txiaocao txiaocao commented Dec 8, 2016

the response is close when use response.send
but if i need send more,just like php flush

send("process.......1%")
// something
send("process.......20%")
send("process.......100%")

@dougwilson
Copy link
Contributor

Hi @txiaocao I think you're trying to ask a question, but accidentally made a PR.

To answer your question: if you want to output partials, you'll want to use response.write method for each chunk and call response.end() when done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants