object

http_directory_listing

Router-agnostic directory listing helper built on the normalized http_core library.

Availability:
logtalk_load(http_directory_listing(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2026-07-06
Compilation flags:
static, context_switching_calls
Remarks:
(none)

Public predicates

serve/4

Serves a directory listing for a relative request path from the given document root using the default options and returns a normalized response.

Compilation flags:
static
Template:
serve(Path,Request,DocumentRoot,Response)
Mode and number of proofs:
serve(+atom,+compound,+atom,-compound) - one_or_error
Exceptions:
Path is not a safe document-root relative path:
domain_error(http_docroot_relative_path,Path)
Request is not a valid normalized HTTP request term:
domain_error(http_request,Request)
DocumentRoot is not a valid absolute document root path:
domain_error(http_docroot_document_root,DocumentRoot)
DocumentRoot is not an existing directory-listing document root:
domain_error(http_directory_listing_document_root,DocumentRoot)
The generated response violates normalized HTTP response semantics:
domain_error(http_header_semantics,Header)

serve/5

Serves a directory listing for a relative request path from the given document root using the given options and returns a normalized response.

Compilation flags:
static
Template:
serve(Path,Request,DocumentRoot,Response,Options)
Mode and number of proofs:
serve(+atom,+compound,+atom,-compound,+list(compound)) - one_or_error
Exceptions:
Path is not a safe document-root relative path:
domain_error(http_docroot_relative_path,Path)
Request is not a valid normalized HTTP request term:
domain_error(http_request,Request)
DocumentRoot is not a valid absolute document root path:
domain_error(http_docroot_document_root,DocumentRoot)
DocumentRoot is not an existing directory-listing document root:
domain_error(http_directory_listing_document_root,DocumentRoot)
Options is a variable or a partial list:
instantiation_error
Options is neither a variable nor a list:
type_error(list,Options)
An element Option of the list Options is neither a variable nor a compound term:
type_error(compound,Option)
An element Option of the list Options is a compound term but not a valid option:
domain_error(option,Option)
The generated response violates normalized HTTP response semantics:
domain_error(http_header_semantics,Header)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)