Make.RPC_answer
type 'o t = [
|
`Ok of 'o
|
`OkChunk of 'o
|
`OkStream of 'o stream
|
`Created of string option
|
`No_content
|
`Forbidden of Error_monad.error list option
|
`Not_found of Error_monad.error list option
|
`Conflict of Error_monad.error list option
|
`Error of Error_monad.error list option
]
Return type for service handler
return_chunked
is identical to return
but it indicates to the server that the result might be long and that the serialisation should be done in mutliple chunks.
You should use return_chunked
when returning an (unbounded or potentially large) list, array, map, or other such set.
val fail : Error_monad.error list -> 'a t Lwt.t