If you have an HTTP response that doesn't require a response body
sending back a 204 No Content response is ideal.

-- Daniel R. <[email protected]> [http://danielr.neophi.com/]


On Fri, Aug 10, 2012 at 3:27 AM, Yordan Ivanov
<[email protected]> wrote:
> 1. The symbol \n flushesh your buffer and "forces" data sending. It is a way
> for (allmost) any platform to flush the buffer.
> 2. No. If you are doing a standart HTTP request you allways have to return
> something to the client. Otherwise the client will wait for some time for a
> response. If you don't need any response you can respond with a
> success/error message or simply with a space symbol for example.
>
> 09 август 2012, четвъртък, 11:16:04 UTC+3, josh написа:
>>
>> i noticed that response.write('hello\n'); will send 'hello' to the client.
>> but ommiting the \n does not. is it chrome specific or
>> is that node's way to stream part of the response to it's clients?
>>
>> also, is node server always streams the response back to it's client?
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to