io.lemonlabs.uri
Type members
Classlikes
This trait has two subclasses; AbsolutePath
and EmptyPath
.
This encompasses the paths allowed to be used in URLs that have an Authority. As per RFC 3986:
This trait has two subclasses; AbsolutePath
and EmptyPath
.
This encompasses the paths allowed to be used in URLs that have an Authority. As per RFC 3986:
When authority is present, the path must either be empty or begin with a slash ("/") character.
- Companion
- object
An AbsolutePath is a path that starts with a slash
An AbsolutePath is a path that starts with a slash
- Companion
- object
Represents absolute URLs, for example: http://example.com
Represents absolute URLs, for example: http://example.com
- Companion
- object
- Companion
- object
Represents URLs with the data scheme, for example: data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678
Represents URLs with the data scheme, for example: data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678
- Companion
- object
- Companion
- object
- Companion
- object
- Companion
- object
Represents protocol relative URLs, for example: //example.com
Represents protocol relative URLs, for example: //example.com
- Companion
- object
Represents Relative URLs which do not contain an authority. Examples include:
Represents Relative URLs which do not contain an authority. Examples include:
-
Root Relative: `/index.html?a=b`
- Rootless Relative:
index.html?a=b
- Rootless Relative
(with dot segment):
../index.html?a=b
- Companion
- object
Represents scp-like URLs, for example: [email protected]:lemonlabsuk/scala-uri.git
Represents scp-like URLs, for example: [email protected]:lemonlabsuk/scala-uri.git
From the scp
manpage: [user@]host:[path]
- Companion
- object
Represents URLs that do not have an authority, for example: mailto:[email protected]
Represents URLs that do not have an authority, for example: mailto:[email protected]
- Companion
- object
Represents a URI. See RFC 3986
Represents a URI. See RFC 3986
Can either be a URL or a URN
URLs will be one of these forms:
-
Absolute: `http://example.com`
- Protocol Relative:
//example.com
- Without Authority:
mailto:[email protected]
-
Root Relative: `/index.html?a=b`
- Rootless Relative:
index.html?a=b
- Rootless Relative
(with doc segment):
../index.html?a=b
URNs will be in the form urn:example:example2
- Companion
- object
Represents a URL, which will be one of these forms:
Represents a URL, which will be one of these forms:
-
Absolute: `http://example.com`
- Protocol Relative:
//example.com
- Without Authority:
mailto:[email protected]
-
Root Relative: `/index.html?a=b`
- Rootless Relative:
index.html?a=b
- Rootless Relative
(with doc segment):
../index.html?a=b
- Companion
- object
Represents absolute URLs with an authority (i.e. URLs with a host), examples include:
Represents absolute URLs with an authority (i.e. URLs with a host), examples include:
-
Absolute URL: `http://example.com`
- Protocol Relative URL:
//example.com
- Companion
- object
Represents URLs that do not have an authority, for example:
mailto:[email protected]
and data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678
Represents URLs that do not have an authority, for example:
mailto:[email protected]
and data:text/plain;charset=UTF-8;page=21,the%20data:1234,5678
- Companion
- object