(** send a "redirection" class response, optional body argument contains data
that will be displayed in the body of the response, default response status is
302 (moved permanently), only redirection status are accepted by this
- function, other values will @raise Failure *)
+ function, other values will raise Failure *)
val respond_redirect:
location:string -> ?body:string ->
?version: Http_types.version ->
(** send an "error" response (i.e. 400 <= status < 600), optional body
argument as per send_redirect, default response status is 400 (bad request),
only error status are accepted by this function, other values will
- @raise Failure *)
+ raise Failure *)
val respond_error:
?body:string ->
?version: Http_types.version ->