Module Ocsigen_lib.​Url

module Url : sig..end

include Url_base
val fixup_url_string : t -> t
val encode : ?plus:bool -> string -> string
val decode : ?plus:bool -> string -> string
val make_encoded_parameters : (string * string) list -> string
val string_of_url_path : encode:bool -> path -> uri
val parse : 
  t ->
  bool option * string option * int option * string * string list *
  string option * (string * string) list Lazy.t

parse url returns a tuple containing information about url

  • If url contains scheme 'https'
  • host of url (ex: http://www.ocsigen.org/ -> www.ocsigen.org)
  • port of url
  • path as string without first '/'
  • path as string list
  • GET query of url
  • lazy value to decode GET query