HttpConnectWrapper class

The HTTP connection wrapper. It simplifies the overriding of a connection.

Implemented types

Constructors

HttpConnectWrapper(HttpConnect origin)

Properties

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

Methods

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

Operators

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