feat: move to Deno.serve (#1427)

Co-authored-by: Marvin Hagemeister <marvin@deno.com>
This commit is contained in:
Lino Le Van
2023-07-12 14:37:53 +02:00
committed by GitHub
co-authored by Marvin Hagemeister
parent 46ae49d654
commit e2a1bf8643
24 changed files with 67 additions and 151 deletions
+2 -11
View File
@@ -17,19 +17,10 @@ export async function start(routes: Manifest, opts: StartOptions = {});
things get interesting. `StartOptions` looks like this:
```
export type StartOptions = ServeInit & FreshOptions & {
/**
* UNSTABLE: use the `Deno.serve` API as the underlying HTTP server instead of
* the `std/http` API. Do not use this in production.
*
* This option is experimental and may be removed in a future Fresh release.
*/
experimentalDenoServe?: boolean;
};
export type StartOptions = ServeInit & FreshOptions;
```
You can play around with `Deno.serve` if you'd like, but heed the warning. The
good stuff is really in...
The good stuff is really in...
```ts
export interface FreshOptions {