Skip to content

Add support for parsing the body #9

@lindsaykwardell

Description

@lindsaykwardell

Add a method to handle parsing the body of a request. This can either be via middleware (like Express) or built-in, such as a check against the header content-type. I prefer the latter, so that parsing does not need to be something the developer thinks about.

router.post("/", (req, { body }) => {
  // Do something with the body
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions