Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Equinoxe.BackendSourceThis module gathers all the methods you need to be able to execute HTTP requests to contact an API server. It must send application/json request.
val return : 'a -> 'a ioval fail : [ `Msg of string ] -> 'a ioval get : headers:(string * string) list -> url:string -> string ioget ~headers ~url executes a request to the server as a GET call and, returns the result as a string.
val post : headers:(string * string) list -> url:string -> string -> string iopost ~headers ~url body executes a request to the server as a POST call using body to describe the request. It returns the result as a string.
val put : headers:(string * string) list -> url:string -> string -> string ioput ~headers ~url body executes a request to the server as a PUT call using body to describe the request. It returns the result as a string.
val delete : headers:(string * string) list -> url:string -> string iodelete ~headers ~url executes a request to the server as a DELETE call and returns the result as a string.