oak
oak copied to clipboard
A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Hi! First of all, very nice work with Oak! When sending binary data to Oak using [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/), the processed data in Oak has extra content (`\r\n`). As an example,...
Send fails when `//` is given as a path because resolvePath throws an error if the second argument is an absolute path, and the call to std’s `path.parse` to find...
This long-standing feature of HTTP responses is getting new life, and it would be great to support it in Oak. It's useful for streamed responses when one doesn't know the...
This is my first time using Oak, and I'm running into an error that is making me scratch my head quite a bit. I can provide more code if need...
Ref: #214 After reviewing the source for the `send` method, it seems that the function is not designed to be used in any place except the tail end of the...
On https://oakserver.github.io/oak/ I see the sentence "There are few scenarios where you want to control with your middleware." I'm not a native English speaker but that sentence feels off. Is...
```ts import * as log from "https://deno.land/[email protected]/log/mod.ts"; import { Application } from "https://deno.land/x/[email protected]/mod.ts"; await log.setup({ handlers: { console: new log.handlers.ConsoleHandler("DEBUG"), access: new log.handlers.FileHandler("INFO", { filename: "./logs/access.log", formatter: "[{datetime}] [{levelName}] {msg}", ...
In the FAQ the recommended approach for managing the identity of the user during the processing of the request is: ``` app.use(async (ctx, next) => { // do whatever checks...
Hi! I wondering if request body and url (path and query as result) are secured and trusted values? Or it can include "bad" not secure characters? And as result hacker...
Code to reproduce the issue: import { Application, Context } from 'https://deno.land/x/[email protected]/mod.ts'; const app = new Application(); app.use(async (ctx) => { console.log('upgrading'); const socket = await ctx.upgrade(); console.log('upgraded'); }); const...