From 3e5f89a13a931f3e703690d967a16fa4e51eb6c3 Mon Sep 17 00:00:00 2001 From: Cangit Date: Tue, 22 Feb 2022 10:46:23 +0100 Subject: [PATCH] App.render -> Server.respond --- src/handler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handler.js b/src/handler.js index 9005fea..8b46c7c 100644 --- a/src/handler.js +++ b/src/handler.js @@ -1,10 +1,10 @@ import { dirname, fromFileUrl, join, readAll, readerFromStreamReader } from './deps.ts'; import { contentType } from './content-types.js'; -import { App } from 'APP'; +import { Server } from 'SERVER'; import { manifest, prerendered } from 'MANIFEST'; -const app = new App(manifest); +const server = new Server(manifest); const __dirname = dirname(fromFileUrl(import.meta.url)); @@ -57,7 +57,7 @@ export async function handler(ctx, next) { return await next(); } - const rendered = await app.render({ + const rendered = await server.respond({ method: req.method, headers: headers_to_object(req.headers), // TODO: what about repeated headers, i.e. string[] url: req.url,