Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module Eliom_registration.File

module File : sig..end

Eliom service registration for services that returns file contents. The value returned by service handlers is the name of the file to send. See the Eliom manual for more information on how to send files with Eliom. The option is the optional "Cache-policy: max-age" header value to be sent.

val check_file : string -> bool

The function check_file file is true if File.send file would effectively return the file (i.e. the file is present and readable)

include Eliom_registration_sigs.S_with_create