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 -4
View File
@@ -53,13 +53,11 @@ export default function FooPage() {
```ts
// tests/main_test.ts
import { createHandler } from "$fresh/server.ts";
import { createHandler, ServeHandlerInfo } from "$fresh/server.ts";
import manifest from "../fresh.gen.ts";
import { assert, assertEquals } from "$std/testing/asserts.ts";
import type { ConnInfo } from "$std/http/server.ts";
const CONN_INFO: ConnInfo = {
localAddr: { hostname: "127.0.0.1", port: 8000, transport: "tcp" },
const CONN_INFO: ServeHandlerInfo = {
remoteAddr: { hostname: "127.0.0.1", port: 53496, transport: "tcp" },
};