js.node.http

..
Agent

An Agent is responsible for managing connection persistence and reuse for HTTP clients. It maintains a queue of pending requests for a given host and port, reusing a single socket connection for each until the queue is empty, at which time the socket is either destroyed or put into a pool where it is kept to be used again for requests to the same host and port. Whether it is destroyed or pooled depends on the keepAlive option.

ClientRequest

This object is created internally and returned from http.request(). It represents an in-progress request whose header has already been queued. The header is still mutable using the setHeader(name, value), getHeader(name), removeHeader(name) API. The actual header will be sent along with the first data chunk or when calling request.end().

ClientRequestEvent

Enumeration of events emitted by ClientRequest

HttpAgentOptions

Options for Agent constructor.

IncomingMessage

An IncomingMessage object is created by http.Server or http.ClientRequest and passed as the first argument to the 'request' and 'response' event respectively. It may be used to access response status, headers and data.

IncomingMessageeEvent

Enumeration of events emitted by the IncomingMessage objects in addition to its parent class events.

InformationEventData

Method

Enumeration of possible HTTP methods as described in http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

Server

This class inherits from net.Server.

ServerEvent

Enumeration of events emitted by http.Server class in addition to its parent net.Server class.

ServerResponse

This object is created internally by an HTTP server — not by the user. It is passed as the second parameter to the 'request' event.

ServerResponseEvent

Enumeration of events emitted by the ServerResponse objects in addition to its parent class events.