HttpChannel class abstract

A HTTP channel. A channel represents the Internet address and port that StreamServer is bound to.

A channel can serve multiple HTTP connection (HttpConnect). A HTTP connection is actually a pair of HttpRequest and HttpResponse.

Constructors

HttpChannel()

Properties

address → dynamic
The address. It can be either a String or an InternetAddress.
no setter
connectionsInfo HttpConnectionsInfo
The connection information summarizing the number of current connections
no setter
hashCode int
The hash code for this object.
no setterinherited
httpServer HttpServer
The internal HTTP server for serving this channel. *
no setter
isClosed bool
Indicates whether the channel is closed.
no setter
isSecure bool
Whether it is a HTTPS channel
no setter
port int
The port.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server StreamServer
The Stream server for serving this channel.
no setter
socket ServerSocket?
The socket that this channel is bound to. It is available only if the channel is started by StreamServer.startOn.
no setter
startedSince DateTime
When the server started. It is null if never started. *
no setter

Methods

close() Future
Closes the channel. *
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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