package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Basic request to services.

exception NotModified of GapiConversation.Session.t
exception BadRequest of GapiConversation.Session.t * int * GapiPipe.OcamlnetPipe.t
exception Unauthorized of GapiConversation.Session.t * int * GapiPipe.OcamlnetPipe.t
exception PermissionDenied of GapiConversation.Session.t
exception RequestTimeout of GapiConversation.Session.t
exception Conflict of GapiConversation.Session.t
exception Gone of GapiConversation.Session.t
exception PreconditionFailed of GapiConversation.Session.t
exception InternalServerError of GapiConversation.Session.t * int * GapiPipe.OcamlnetPipe.t
exception ServiceUnavailable of GapiConversation.Session.t * int * GapiPipe.OcamlnetPipe.t
exception RefreshTokenFailed of GapiConversation.Session.t
type request_type =
  1. | Query
  2. | Create
  3. | Update
  4. | Patch
  5. | Delete
  6. | QueryMeta
val parse_empty_response : 'a -> unit
val gapi_request : ?post_data:GapiCore.PostData.t -> ?version:string -> ?etag:string -> ?media_source:GapiMediaResource.t -> ?media_download:GapiMediaResource.download -> ?parse_error: (GapiPipe.OcamlnetPipe.t -> int -> GapiConversation.Session.t -> 'a) -> request_type -> string -> (GapiPipe.OcamlnetPipe.t -> GapiCore.Header.t list -> 'a) -> GapiConversation.Session.t -> 'a * GapiConversation.Session.t