Did you know ... Search Documentation:
Pack simple_web -- prolog/sw/sw_static_handling.pl
PublicShow source

Setup static serving from static directory

 reply_file(+File, +Request) is semidet
Respond with a file using default options
Arguments:
File- The path to the file to respond with, relative or absolute.
Request- The Request provided to the route
 reply_file(+File, +Request) is semidet
Respond with a file with options as per [http_reply_file/3] from library(http/http_dispatch)
Arguments:
File- The path to the file to respond with, relative or absolute.
Options- As per http_reply_file/3
Request- The Request provided to the route

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 reply_file(Arg1, Arg2, Arg3)