cmorten / opine

Minimalist web framework for Deno ported from ExpressJS.
https://github.com/cmorten/opine/blob/main/.github/API/api.md
MIT License
854 stars 43 forks source link

[FEAT] Support GZIP and Deflate Compression #52

Closed asos-craigmorten closed 4 years ago

asos-craigmorten commented 4 years ago

Issue

Setup:

Add support for deflate and gzip encoding in body-parsers.

Details

Currently gzip and deflate are not supported in Opine and throw a 415 error. This issue is to add support to Opine for these two standard options which is now possible due to modules being made available in the Deno userland.

Relevant file: ./src/middleware/bodyParser/read.ts Line 117.

Modules to explore:

JayHelton commented 4 years ago

@asos-craigmorten i think i will grab this one and give it a shot!

JayHelton commented 4 years ago

Im assuming this would be a deno idiomatic port of https://github.com/expressjs/body-parser/blob/master/lib/read.js?