|
|
@ -354,7 +354,7 @@ which has been transmitted are equal or not. |
|
|
|
### response.statusCode |
|
|
|
|
|
|
|
When using implicit headers (not calling `response.writeHead()` explicitly), this property |
|
|
|
controls the status code that will be send to the client when the headers get |
|
|
|
controls the status code that will be sent to the client when the headers get |
|
|
|
flushed. |
|
|
|
|
|
|
|
Example: |
|
|
@ -452,7 +452,7 @@ emit trailers, with a list of the header fields in its value. E.g., |
|
|
|
### response.end([data], [encoding]) |
|
|
|
|
|
|
|
This method signals to the server that all of the response headers and body |
|
|
|
has been sent; that server should consider this message complete. |
|
|
|
have been sent; that server should consider this message complete. |
|
|
|
The method, `response.end()`, MUST be called on each |
|
|
|
response. |
|
|
|
|
|
|
|