package yurt

  1. Overview
  2. Docs
module Route : sig ... end

Routes are used to build URLs with types variables

module Body : sig ... end

The Body module contains methods needed for creating, reading and modifying request data

module Request = Cohttp_lwt_unix.Request
module Response = Cohttp.Response
module Header = Cohttp.Header
type response = (Response.t * Body.t) Lwt.t

Response type

and endpoint = Request.t -> Route.params -> Body.t -> response

HTTP handler

module Query : sig ... end

Query contains methods for reading query string parameters

module Server : sig ... end

Server contains the methods needed to build a Yurt server

module Client : sig ... end

Client contains functions for sending HTTP requests

module Form : sig ... end
module Util : sig ... end
OCaml

Innovation. Community. Security.