Skip to content

Commit c080f29

Browse files
committed
Export Neturl.split_path as Ocsigen_lib.Url.split_path
Useful for shared Eliom programming (we already have a client-side Eliom_lib.Url.split_path).
1 parent 179decd commit c080f29

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/baselib/ocsigen_lib.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,4 +257,6 @@ module Url = struct
257257

258258
(https, host, port, uri_string, path, query, get_params)
259259

260+
let split_path = Neturl.split_path
261+
260262
end

src/baselib/ocsigen_lib.mli

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,7 @@ module Url : sig
7575
string list * string option *
7676
(string * string) list Lazy.t
7777

78+
(** alias of (Ocamlnet) [Neturl.split_path] *)
79+
val split_path : string -> string list
80+
7881
end

0 commit comments

Comments
 (0)