Skip to content

Simple API should parse POST requests #9

@jessepollak

Description

@jessepollak

Right now, there's not support for POST request data parsing or any tests around POST requests.

I started to dig into this, but realized that it brought up some larger concerns (some of which were mentioned in #8. The largest one is synchronous v. asynchronous and how that affects the stack of Simple.

Really, what I think would be ideal here, is to adopt a sort of middle ware approach like Express that would allow easy insertion of the data parsing into the stack. Otherwise, we'll just have nested callbacks on nested callbacks all up in the handleHTTPRequest function...and that's no fun 👎

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions