UNPKG

itty-router

Version:

A tiny, zero-dependency router, designed to make beautiful APIs in any environment.

2 lines (1 loc) 226 B
"use strict";const e=((e="text/plain; charset=utf-8",t)=>(t,s={})=>{if(void 0===t||t instanceof Response)return t;const n=new Response(t,s.url?void 0:s);return n.headers.set("content-type",e),n})("image/webp");exports.webp=e;