Skip to content

nunes22/morph

This branch is 14 commits behind reason-native-web/morph:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0e1d033 · May 18, 2020
May 2, 2020
May 9, 2020
May 17, 2020
May 17, 2020
May 17, 2020
May 17, 2020
May 17, 2020
May 2, 2020
May 2, 2020
Apr 28, 2020
May 2, 2020
Sep 22, 2019
May 9, 2020
Sep 23, 2019
Feb 2, 2020
May 17, 2020
May 2, 2020
May 18, 2020
May 17, 2020
May 18, 2020
May 9, 2020
May 18, 2020
May 18, 2020
May 2, 2020
May 17, 2020

Repository files navigation

morph

Build Status

A tiny framework for developing HTTP stuff in reason native using Httpaf and H2.

Documentation

https://reason-native-web.github.io/

The documentation is not as fleshed out as it should be, the repos is under heavy development.

Build and run examples

esy install
esy build
esy examples
$(esy examples-path)/hello_world.exe
$(esy examples-path)/with_router.exe
$(esy examples-path)/simple_proxy.exe

Example

Server:

let http_server = Morph_server_http.make();
Morph.start(~servers=[http_server], _request => Http.Response.Ok.make)
|> Lwt_main.run;

Slightly larger example using ocaml-routes: https://github.com/reason-native-web/morph/blob/master/examples/with_router.re

Sponsors

Thank you to @imbsky for sponsoring my work on Morph

Releases

No releases published

Packages

No packages published

Languages

  • Reason 79.8%
  • JavaScript 16.5%
  • Shell 3.7%