HttpConnect class abstract

A HTTP request connection.

Implementers

Constructors

HttpConnect.buffer(HttpConnect origin, List<int> buffer)
Instantiates a connection by redirecting the output to the given buffer
factory
HttpConnect.chain(HttpConnect connect, {bool inclusion = true, String? uri, HttpRequest? request, HttpResponse? response})
Instantiates a connection that will be used to include or forward to
factory
HttpConnect.stringBuffer(HttpConnect origin, StringBuffer buffer)
Instantiates a connection by redirecting the output to the given
factory

Properties

autoClose bool
Returns whether to close response after serving a request. Default: true.
getter/setter pair
browser Browser
The browser information. *
no setter
channel HttpChannel
The channel that this connection is on.
no setter
dataset Map<String, dynamic>
A map of application-specific data. *
no setter
errorDetail ErrorDetail?
The error detailed information, or null if no error occurs.
getter/setter pair
forwarder HttpConnect?
The source connection that forwards to this connection, or null if not forwarded.
no setter
hashCode int
The hash code for this object.
no setterinherited
includer HttpConnect?
The source connection that includes this connection, or null if not included.
no setter
isForwarded bool
Whether this connection is caused by forwarding.
no setter
isIncluded bool
Whether this connection is caused by inclusion.
no setter
locale String
The preferred Locale that the client will accept content in,
no setter
locales List<String>
A readonly list of Locales indicating, in decreasing order starting with
no setter
request HttpRequest
The HTTP request.
no setter
response HttpResponse
The HTTP response. *
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server StreamServer
The Stream server
no setter

Methods

forward(String uri, {HttpRequest? request, HttpResponse? response}) Future
Forward this connection to the given uri. *
headerValue(String name) String?
Returns the first value of the given name of request's headers.
include(String uri, {HttpRequest? request, HttpResponse? response}) Future
Includes the given uri. *
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redirect(String url, {int status = HttpStatus.movedTemporarily}) → void
Send a temporary redirect to the specified redirect URL. *
toString() String
A string representation of this object.
inherited

Operators

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