ServerHandler class

A connected pair of a Server and a Handler.

Requests to the handler are sent to the server's mounted handler once it's available. This is used to expose a virtual Server that's actually one part of a larger URL-space.

Annotations
  • @Deprecated('Do not use. If you have a use case for this class add a comment ' 'at https://github.com/dart-lang/shelf/issues/205')

Constructors

ServerHandler(Uri url, {Future<void>? onClose()?})
Creates a new connected pair of a Server with the given url and a Handler.

Properties

handler Handler
The handler.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server Server
The server.
no setter

Methods

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