UNPKG

itty-router

Version:

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

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