Kurl.Kind
Kinds of URL requests
type root_is = [
| `Dir of string option
| `File
]
See kind.
kind
type 'a t = 'a kind
val v : ?root_is:root_is -> ?name:string -> 'a enc -> 'a dec -> 'a kind
val name : 'a kind -> string
kind k is the name of k.
kind k
k
val root_is : 'a kind -> root_is
root_is k is root path encoding behaviour for k, see kind.
root_is k
val enc : 'a kind -> 'a enc
enc k is the encoder of k.
enc k
val dec : 'a kind -> 'a dec
dec k is the decoder of k.
dec k
val equal : 'a kind -> 'a kind -> bool
equal k0 k1 is true iff k0 and k1 are the same kind.
equal k0 k1
true
k0
k1
val bare : ?root_is:root_is -> ?name:string -> unit -> bare kind
bare () is a bare request kind. Can be used for untyped formatting tricks.
bare ()