Server class

An instance of the server created using Deno.serve() API.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

Server({Future<void>? finished, void ref()?, void unref()?})
factory

Properties

finished Future<void>

Available on Server, provided by the Server$Typings extension

A promise that resolves once server finishes - eg. when aborted using the signal passed to {@linkcode ServeOptions.signal}.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ref ↔ void Function()

Available on Server, provided by the Server$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unref ↔ void Function()

Available on Server, provided by the Server$Typings extension

getter/setter pair

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