package ocsigenserver
A full-featured and extensible Web server
Install
Dune Dependency
Authors
Maintainers
Sources
5.0.0.tar.gz
md5=ac7f9fcf1aced530061ceb4c76efe475
sha512=5691d1cc53725466bf0548fdaa8b4b624b9ac20aa41152f61020da05696a2d0e3cd010d9d72aa60d55216ca4b1b3938573e00c7d922e034d1080508ec46b47dd
doc/ocsigenserver/Ocsigen_local_files/index.html
Module Ocsigen_local_files
Source
The requested file does not exists
The requested file cannot be served: does not exists, not enough permissions ...
The file is a directory which we should not display
Local file corresponding to a request. The string argument represents the real file or directory to serve, eg. foo/index.html instead of foo
Source
val resolve :
?no_check_for:string ->
request:Ocsigen_extensions.request ->
filename:string ->
unit ->
resolved
Finds filename
in the filesystem, with a possible redirection if it is a directory. Takes into account the fact that filename
does not exists, is a symlink or is a directory, and raises Failed_404 or Failed_403 accordingly.
- we return
"filename/index.html"
iffilename
corresponds to a directory,"filename/index.html"
is valid, and"index.html"
is one possible index (trying all possible indexes in order) - we raise
Failed_404
iffilename
corresponds to a directory, no index exists andlist_dir_content
is false. Warning: this behaviour is not the same as Apache's but it corresponds to a missing service in Eliom (answers 404). This also allows to have an Eliom service after a "forbidden" directory - we raise
Failed_403
iffilename
is a symlink that must not be followed - raises
Failed_404
iffilename
does not exist, or is a special file - otherwise returns
filename
no_check_for
is supposed to be a prefix of filename
; directories above no_check_for
are not checked for symlinks
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>