opium_kernel

Sinatra like web toolkit based on Lwt + Cohttp
Library opium_kernel
Module Opium_kernel . Route
type path_segment =
| Match of string
| Param of string
| Splat
| FullSplat
| 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 = {
params : (string * string) list;
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