PersistentHandler class

Handler which relies on the built-in Dart HTTP client. It is the developer's responsibility to instantiate the client and call close() on it in the end pf the application lifecycle.

Inheritance

Constructors

PersistentHandler(Client client, {@Deprecated('Deprecated in favor of MessageConverter.' ' To be removed in version 6.0.0') Encoding defaultEncoding = utf8, MessageConverter? messageConverter})
Creates a new instance of the handler. Do not forget to call close() on the client when it's not longer needed.

Properties

client → Client
finalinherited
defaultEncoding Encoding
final
hashCode int
The hash code for this object.
no setterinherited
messageConverter MessageConverter
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(HttpRequest request) Future<HttpResponse>
inherited
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