Skip to main content

@oak/acorn@1.1.1
Built and signed on GitHub Actions

A focused RESTful server framework 🌰

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
4 days ago (1.1.1)
interface HandledDetails

Details provided to an onHandled hook.

Type Parameters

Env extends Record<string, string> = Record<string, string>

Properties

The duration in milliseconds that it took to handle the request.

acorn attempts to use high precision timing to determine the duration, but this is runtime dependent. If it is high precision timing, the number will be a float.

The request event which was processed.

The response which is being returned to the client.

optional
route: Route

If a route was matched, this will be the route that was matched.

Add Package

deno add jsr:@oak/acorn

Import symbol

import { type HandledDetails } from "@oak/acorn";

---- OR ----

Import directly with a jsr specifier

import { type HandledDetails } from "jsr:@oak/acorn";

Add Package

npx jsr add @oak/acorn

Import symbol

import { type HandledDetails } from "@oak/acorn";

Add Package

yarn dlx jsr add @oak/acorn

Import symbol

import { type HandledDetails } from "@oak/acorn";

Add Package

pnpm dlx jsr add @oak/acorn

Import symbol

import { type HandledDetails } from "@oak/acorn";

Add Package

bunx jsr add @oak/acorn

Import symbol

import { type HandledDetails } from "@oak/acorn";