HttpTransport class final

Cross-platform HTTP transport backed by package:http.

Implemented types

Constructors

HttpTransport({Client? client, int maxRequestBodyBytes = defaultMaxRequestBodyBytes})
Creates a transport, optionally reusing an existing HTTP client.

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxRequestBodyBytes → int
Maximum bytes buffered before one request is sent.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the internally owned HTTP client, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(ServerRequest request) → Future<ServerResponse>
Sends request and returns its response.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

defaultMaxRequestBodyBytes → const int
Default maximum buffered request body size: 10 MiB.