Url! datatype

1. Abstract

An url! value represents a reference to a network resource and allows for directly expressing Uniform Resource Locators.

Url! is a member of the following typesets: any-string!, series!

2. Creation

Url! values can be created using literal syntax, or at runtime by using a make constructor or to conversion.

>> make url! [foo bar baz]
== foo://bar/baz
>> to url! [ftp localhost]
== ftp://localhost

3. Literal syntax

One or more characters followed by a colon :, followed by one or more characters.

Url Encoding converts, such as %20 and %30, are allowed.

4. Comparisons

All comparators can be applied on url!: =, ==, <>, >, <, >=, <=, =?. In addition, min, and max are also supported.

5. Testing values

Use url? to check if a value is of the url! datatype.

>> url? https://www.foo.org
== true

Use type? to return the datatype of a given value.

>> url? http://bar.net
== true

6. Pre-defined words

6.1. Actions

read, write

6.2. Functions

clean-path, dir?, dirize, do-file, do-thru, exists-thru?, load, load-thru, path-thru, read-thru, save, split-path, suffix?, to-url, url?

6.3. Natives

browse, dehex

results matching ""

    No results matching ""