package awsm-async

  1. Overview
  2. Docs
include Awsm.Http.Io.S with type 'a s := 'a Async.Deferred.t and type 'a stream := 'a Async.Pipe.Reader.t
include Awsm.Http.Monad.S with type 'a s := 'a Async.Deferred.t
type t

Monad type lifted into the app type.

val inj : 'a Async.Deferred.t -> ('a, t) Awsm.Http.Monad.app
val prj : ('a, t) Awsm.Http.Monad.app -> 'a Async.Deferred.t
val monad : t Awsm.Http.Monad.t
val make_stream : 'a Async.Pipe.Reader.t -> ('a, t) Awsm.Http.Response.stream
val make_http : (Awsm.Http.Meth.t -> Awsm.Http.Request.t -> Uri.t -> (t Awsm.Http.Response.t, 'error) Core.result Async.Deferred.t) -> (t, 'error) Awsm.Http.Call.t
val call : ?endpoint_url:string -> cfg:Awsm.Cfg.t -> service:Awsm.Service.t -> Awsm.Http.Meth.t -> Awsm.Http.Request.t -> Uri.t -> ((t Awsm.Http.Response.t, Awsm.Http.Io.Error.call) Core.result, t) Awsm.Http.Monad.app
OCaml

Innovation. Community. Security.