Resx

Resx is powerful response module.

Example

If you want to response JSON:

import * as resx from "https://deno.land/x/resx"

const response: Response = resx.json({
  status: "ok",
})

For vanilla:

const json = JSON.stringify({
  status: "ok",
})
const response: Response = new Response(json, {
  headers: {
    "content-type": "application/json",
  },
})

...

_人人人人人人人人人人人人人_  
> Can you understand <  
 ̄Y^Y^Y^Y^^Y^Y^Y^Y^Y^Y ̄
_人人人人人人人人人人人人人人人_  
> おわかりいただけただろうか <  
 ̄Y^Y^Y^YY^Y^Y^Y^Y^Y^Y^Y^ ̄