reason-native-web / morph

A webframework for Reason and OCaml
https://reason-native-web.github.io/morph/
MIT License
139 stars 7 forks source link

Feature/response struct #6

Closed shawn-mcginty closed 5 years ago

shawn-mcginty commented 5 years ago

Updated all of the Morph_core.Response helper functions to be in t last format. Also added helpers for updating a t to make the api work nicely together.

for example:

Morph_core.Response.empty()
|> Morph_core.Response.set_status(`Code(201))
|> Morph_core.Response.json(json_data);