Module TzPervasives.RPC_answer

type 'o t = [
| `Ok of 'o
| `OkChunk of 'o
| `OkStream of 'o stream
| `Created of string option
| `No_content
| `Unauthorized of Tezos_rpc.RPC_service.error option
| `Forbidden of Tezos_rpc.RPC_service.error option
| `Not_found of Tezos_rpc.RPC_service.error option
| `Conflict of Tezos_rpc.RPC_service.error option
| `Gone of Tezos_rpc.RPC_service.error option
| `Error of Tezos_rpc.RPC_service.error option
]

Return type for service handler

and 'a stream = 'a Resto_directory.Answer.stream = {
next : unit -> 'a option Lwt.t;
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
val fail : Tezos_error_monad.Error_monad.error list -> 'a t Lwt.t