package opium_kernel

  1. Overview
  2. Docs
type path_segment =
  1. | Match of string
  2. | Param of string
  3. | Splat
  4. | FullSplat
  5. | Slash
val path_segment_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> path_segment
val sexp_of_path_segment : path_segment -> Ppx_sexp_conv_lib.Sexp.t
type matches = {
  1. params : (string * string) list;
  2. splat : string list;
}
val splat : matches -> string list
val params : matches -> (string * string) list
module Fields_of_matches : sig ... end
val matches_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> matches
val sexp_of_matches : matches -> Ppx_sexp_conv_lib.Sexp.t
type t = path_segment list
val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val parse_param : string -> path_segment
val of_list : string list -> path_segment list
val split_slash_delim : string -> [> `Delim | `Text of string ] list
val split_slash : string -> string list
val of_string : string -> path_segment list
val to_string : path_segment list -> string
val match_url : path_segment list -> string -> matches option
OCaml

Innovation. Community. Security.