add sessionDestroy func

This commit is contained in:
2023-05-13 06:25:28 +02:00
parent 5392b032d0
commit 96a73035f8
2 changed files with 5 additions and 1 deletions

4
mod.ts
View File

@@ -448,6 +448,10 @@ export class RouteRequest {
}
}
sessionDestroy(): void {
this.session = {};
}
header(name: string): unknown {
const matchingHeader = Array.from(this.headers.keys()).find((headerName) =>
headerName === name