module P:sig..end
Module of functions to manipulate the service's PATH_INFO.
val zap : Restful.Url.t -> Restful.Url.tzap url: remove the entire PATH_INFO string from the URL.
E.g. http://google.com/search?q=foo becomes http://google.com/?q=foo.
val replace : string list -> Restful.Url.t -> Restful.Url.treplace pi url: replace the entire PATH_INFO with pi.
E.g. replace ["";"zap"] applied to
http://google.com/search?q=foo yields http://google.com/zap?q=bar.
Note that the PATH_INFO is represented OCamlNet-fashion as a list of
strings, as if you split the PATH_INFO on "/"; such a list pi must match
the invariant List.length pi > 0 && List.hd pi = "".