Reason Native Web
  • Guides
  • Help
  • GitHub
Morph (morph.Morph)
Up – morph » Morph

Module Morph

let start: servers:list(Server.t) => ?⁠middlewares:list(Server.middleware) => Server.handler => Lwt.t(unit);

start servers middlewares handler starts the server.

Simple usage:

Morph.start(_request => Http.Response.Ok.make)
|> Lwt_main.run;
module Server: { ... };
module Request: { ... };

Defines the request type

module Response: { ... };

Defines the response type and helper functions to easily create responses in Morph.

module Method: { ... };
module Status: { ... };
Reason Native Web
Docs
Your first web serverGuidesAPI Reference
Community
Reason DiscordReasonML ForumOCaml DiscordOCaml Discuss
More
GitHub
Copyright © 2019 Your Name or Your Company Name