Skip to content

ServeStaticOptions

reference
1 min readUpdated

Kind: Type

Source: src/middleware/serve-static/index.ts

Part of: Middleware

Definition

ts
{ root?: string path?: string precompressed?: boolean mimes?: Record<string, string> rewriteRequestPath?: (path: string) => string onFound?: (path: string, c: Context<E>) => void | Promise<void> onNotFound?: (path: string, c: Context<E>) => void | Promise<void> }

Relationships

  • IMPORTS → COMPRESSIBLE_CONTENT_TYPE_REGEX
  • IMPORTS → getMimeType
  • IMPORTS → tryDecodeURI
  • IMPORTS → defaultJoin

Was this page helpful?

Download as PDF
ServeStaticOptions — Hono (narrator proof)