Module Url.Authority

Sloppy authority processing.

type t = string

The type for [userinfo@]HOST:PORT authorities.

type port = int

The type for authority ports.

type host = string

The type for authority hosts.

val userinfo : t -> string option

userinfo a is anything before the lefmost '@' (if any)

val host : t -> host

host a is anything between the first '@' (if any) and the ':' separating the port.

val port : t -> port option

port a is the port made of suffix decimal digits before a ':'.