Deno.HttpServer
An instance of the server created using Deno.serve()
API.
interface HttpServer extends AsyncDisposable {
finished: Promise<void>;
ref(): void;
shutdown(): Promise<void>;
unref(): void;
}§Properties
§
finished: Promise<void>
[src]A promise that resolves once server finishes - eg. when aborted using
the signal passed to ServeOptions.signal
.
§Methods
§
ref(): void
[src]Make the server block the event loop from finishing.
Note: the server blocks the event loop from finishing by default.
This method is only meaningful after .unref()
is called.