sholladay / pogo

Server framework for Deno
Mozilla Public License 2.0
482 stars 32 forks source link

Parse body of JSON requests #52

Closed sholladay closed 1 year ago

sholladay commented 3 years ago

Closes #41

This PR adds body parsing for requests whose Content-Type is application/json. The parsed result can be accessed as request.payload.

sholladay commented 1 year ago

I've decided not to do automatic body parsing until someone comes up with a proposal for how to handle the TypeScript types.