Skip to content

v0.19.0 — file uploads, content negotiation

Choose a tag to compare

@tshafer tshafer released this 10 Jul 20:44
· 149 commits to main since this release

File uploads (web-standard File, edge-safe — no temp dir):

const avatar = await request.file("avatar");   // File | undefined
const docs = await request.files("docs");       // File[]
await request.allFiles();

Plus content negotiation (request.accepts/types/language/languages), request meta (hasBody/headers/ips), and response helpers (type, append, removeHeader, abortIf/abortUnless). The parsed FormData is cached per request so file access coexists with request.all().