Mavryk_rpc.Answer
type 'o t = [
|
`Ok of 'o
|
`OkChunk of 'o
|
`OkStream of 'o stream
|
`Created of string option
|
`No_content
|
`Forbidden of Mavryk_error_monad.Error_monad.error list option
|
`Not_found of Mavryk_error_monad.Error_monad.error list option
|
`Conflict of Mavryk_error_monad.Error_monad.error list option
|
`Gone of Mavryk_error_monad.Error_monad.error list option
|
`Error of Mavryk_error_monad.Error_monad.error list option
]
Return type for service handler
val return : 'o -> 'o t Lwt.t
val return_chunked : 'o -> 'o t Lwt.t
val return_unit : unit t Lwt.t
val not_found : 'o t Lwt.t
val gone : 'o t Lwt.t
val fail : Mavryk_error_monad.Error_monad.error list -> 'a t Lwt.t