package resto-cohttp-client
Library
Module
Module type
Parameter
Class
Class type
Client calls to services.
module type CALL = sig ... end
The minimal interface for building a client. Cohttp_lwt.S.Client
is an instance of this signature, modulo some additional optional parameters that resto does not use. See OfCohttp
below to obtain an exact intance based on Cohttp_lwt.S.Client
.
module OfCohttp (Client : Cohttp_lwt.S.Client) : CALL
Whether or not an operation should follow redirects.
Given a limit
, operations accepting a redirect_behaviour
will follow up to that many redirects, inclusive, and fail with a Too_many_redirects
error above that. If the limit
parameter is negative, redirects will not be followed, just as if the behaviour were set to Do_not_follow_redirects
, but the error will be Too_many_redirects
instead.
module Make (Encoding : Resto.ENCODING) (Call : CALL) : sig ... end
Make(Encoding)(Client)
is a module that allows you to make calls to various Resto
(or EzResto
) services.