module Ocsigen_senders: sig
.. end
Functions to create results for various kinds of documents
module File_content: Ocsigen_http_frame.HTTP_CONTENT
with type t =
string * Ocsigen_charset_mime.charset_assoc * Ocsigen_charset_mime.mime_assoc
module Xhtml_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = XHTML.M.doc
module Html5_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = HTML5.M.doc
module Make_XML_Content: functor (
XML
:
XML_sigs.Iterable
) ->
functor (
TypedXML
:
XML_sigs.TypedXML
with module XML := XML
) ->
Ocsigen_http_frame.HTTP_CONTENT
with type t = TypedXML.doc
and type options = Http_headers.accept Lazy.t
module Text_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = string * string
content * content-type
module Stream_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = string Ocsigen_stream.t
module Streamlist_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = (unit -> string Ocsigen_stream.t Lwt.t) list
* string
streams and content-type
module Empty_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = unit
module Directory_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = string * string list
directory name and corresponding URL path
module Error_content: Ocsigen_http_frame.HTTP_CONTENT
with type t = int option * exn option * Ocsigen_cookies.cookieset
error code and/or exception
val send_error : ?code:int ->
?exn:exn ->
Ocsigen_http_com.slot ->
clientproto:Ocsigen_http_frame.Http_header.proto ->
?mode:Ocsigen_http_frame.Http_header.http_mode ->
?proto:Ocsigen_http_frame.Http_header.proto ->
?cookies:Ocsigen_cookies.cookieset ->
head:bool -> sender:Ocsigen_http_com.sender_type -> unit -> unit Lwt.t
Sending an error page