package tezos-base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'o t = [
  1. | `Ok of 'o
  2. | `OkChunk of 'o
  3. | `OkStream of 'o stream
  4. | `Created of string option
  5. | `No_content
  6. | `Unauthorized of Tezos_rpc.RPC_service.error option
  7. | `Forbidden of Tezos_rpc.RPC_service.error option
  8. | `Not_found of Tezos_rpc.RPC_service.error option
  9. | `Conflict of Tezos_rpc.RPC_service.error option
  10. | `Gone of Tezos_rpc.RPC_service.error option
  11. | `Error of Tezos_rpc.RPC_service.error option
]

Return type for service handler

and 'a stream = 'a Resto_directory.Answer.stream = {
  1. next : unit -> 'a option Lwt.t;
  2. shutdown : unit -> unit;
}
val return : 'o -> 'o t Lwt.t
val return_chunked : 'o -> 'o t Lwt.t
val return_unit : unit t Lwt.t
val return_stream : 'o stream -> 'o t Lwt.t
val not_found : 'o t Lwt.t
val gone : 'o t Lwt.t
OCaml

Innovation. Community. Security.