Skip to main content
Deno 2 is finally here πŸŽ‰οΈ
Learn more

Allo Reponses for Deno πŸ¦•

Prepared reponse classes for Deno.

Classes

TextResponse

const r = new TextResponse('Lorem ipsum');

JsonResponse

const r = new JsonResponse([{ foo: bar }]);

HtmlResponse

const r = new HtmlResponse('<h1>Hello World</h1>');

FileResponse

const r = new FileResponse('/path/to/file.ext');
const file: File = /*...*/;
const r = new FileResponse(file);
const file: Deno.FsFile = /*...*/;
const r = new FileResponse(file);

Documentation πŸ“–

Description of all classes and methods with examples will found in the documentation.


Check out other ours packages πŸ“¦!