Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add some notes about extent of HTTP API
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 27, 2009
1 parent b77e603 commit bd952ac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions website/api.html
Expand Up @@ -614,6 +614,14 @@ <h2 id="http"><code>node.http</code></h2>
only be done with multiple <code>Cookie</code> lines.
</i></p>

<p>
Node's HTTP abstraction deals with connection handling and message
parsing only. It parses the message into headers and body - but it does
not parse any of the headers or the body. This is left to the user. That
means, for example, that Node does not (and will never) provide API
to access or manipulate Cookies or multi-part bodies.
</p>

<h3 id="http_server"><code>node.http.Server</code></h3>

<dl>
Expand Down Expand Up @@ -788,6 +796,11 @@ <h3 id="http_server_response"><code>node.http.ServerResponse</code></h3>
specifies how to encode it into a byte stream. By default the
<code>encoding</code> is <code>"ascii"</code>.
</p>

<p>
Note: This is the raw HTTP body and has nothing to do with
higher-level multi-part body encodings that may be used.
</p>
</dd>

<dt><code>res.finish()</code></dt>
Expand Down

0 comments on commit bd952ac

Please sign in to comment.