HTTP class abstract

Main entry point to Node's "http" module functionality.

Usage:

HTTP http = require('http');
http.get("http://example.com");

See also:

Annotations
  • @JS.new()
  • @anonymous

Constructors

HTTP()

Properties

Agent → Function
Reference to constructor function of HttpAgent class.
no setter
globalAgent → HttpAgent
Global instance of Agent which is used as the default for all HTTP client requests.
no setter
hashCode → int
The hash code for this object.
no setterinherited
METHODS → List<String>
A list of the HTTP methods that are supported by the parser.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
STATUS_CODES → dynamic
A collection of all the standard HTTP response status codes, and the short description of each. For example, http.STATUS_CODES[404] === 'Not Found'.
no setter

Methods

createServer([HttpRequestListener requestListener]) → HttpServer
Returns a new instance of HttpServer.
get(dynamic urlOrOptions, [void callback(IncomingMessage response)]) → ClientRequest
Makes GET request. The only difference between this method and request is that it sets the method to GET and calls req.end() automatically.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request(RequestOptions options, [void callback(IncomingMessage response)]) → ClientRequest
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited