|Did you know ...||Search Documentation:|
library(http/http_dispatch). In the typical usage scenario, one needs to define an http location and a file-search path that is used as the root of the server. E.g., the following declarations create a self-contained web-server for files in
user:file_search_path(pwp, '/web/pwp'). :- http_handler(root(.), pwp_handler([path_alias(pwp)]), [prefix]).
false), allow for ?view=source to serve PWP file as source.
permission_error(index, http_location, Location)is raised if the handler resolves to a directory that has no index.