package uritemplate

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | Simple
    (*

    {var}

    *)
  2. | Reserved
    (*

    {+var}

    *)
  3. | Fragment
    (*

    {#var}

    *)
  4. | Dot
    (*

    {.var}

    *)
  5. | PathSegment
    (*

    {/var}

    *)
  6. | PathParameter
    (*

    {;var}

    *)
  7. | FormQuery
    (*

    {?var}

    *)
  8. | FormQueryContinuation
    (*

    {&var}

    *)

The type of expansion that

val expansion_type_of_string : string -> t

Returns the expasion type represented by the give string (see t). Or Simple if not recognised

val string_of_expansion_type : t -> string

string_of_expansion_type ex returns the character that represents the expansion type ex or any empty string for Simple

val separator_for_expansion_type : t -> char

separator_for_expansion_type ex returns the character that seperates multiple expanded variables as specified by Section 3.2.1

OCaml

Innovation. Community. Security.