1:- module(sw, 2 [ location/2 3 , location/3 4 , route/3 5 , route/4 6 ] 7). 8 9:- dynamic route/3. 10:- dynamic route/4. 11:- dynamic handler_url/2. 12:- multifile route/3. 13:- multifile route/4. 14:- multifile handler_url/2.
location(Name, Url)
is det.
assert http:location/3 with default options20location(Name, Url) :- 21 asserta((http:location(Name, Url, []))). 22location(Name, Url, Options) :- 23 asserta((http:location(Name, Url, Options)))