interface Deno.ServeOptions Options which can be set when calling Deno.serve. Type Parameters Addr extends Deno.Addr = Deno.Addr Properties optional signal: AbortSignal An AbortSignal to close the server and all connections. optional onError: (error: unknown) => Response | Promise<Response> The handler to invoke when route handlers throw an error. optional onListen: (localAddr: Addr) => void The callback which is called when the server starts listening.