ocsigenserver

A full-featured and extensible Web server
Library ocsigenserver.baselib.base
type t = string
type uri = string
val make_absolute_url : https:bool -> host:string -> port:int -> uri -> t

make_absolute_url https host port path generates a new absolute url

type path = string list
val remove_dotdot : path -> path

remove_dotdot path cleans the path of ..

val remove_end_slash : string -> string

remove_end_slash str removes last /

val remove_internal_slash : path -> path

remove_internal_slash path cleans the path of empty string

val change_empty_list : path -> path
val add_end_slash_if_missing : path -> path
val remove_slash_at_end : path -> path
val remove_slash_at_beginning : path -> path
val is_prefix_skip_end_slash : string list -> string list -> bool

is_prefix_skip_end_slash path1 path2 returns true if path1 is the same as path2 before a first slash

val split_fragment : string -> string * string option

split_fragment str splits str at first '#'

val join_path : path -> string