3.3 library(http/http_dirindex): HTTP directory listings
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
    • Packages
      • SWI-Prolog HTTP support
        • The HTTP server libraries
          • library(http/http_dirindex): HTTP directory listings
            • http_reply_dirindex/3
            • directory_index//2
            • mime_type_icon/2
Availability::- use_module(library(http/http_dirindex)).
Source[det]http_reply_dirindex(+DirSpec, :Options, +Request)
Provide a directory listing for Request, assuming it is an index for the physical directrory Dir. If the request-path does not end with /, first return a moved (301 Moved Permanently) reply.

The calling conventions allows for direct calling from http_handler/3.