sholladay / pogo

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

Parse body of JSON requests #52

Closed sholladay closed 2 years ago

sholladay commented 4 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 2 years ago

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