Search results

There are no results.

std.uri

RFC 3986 URIs.

This module provides types for working with RFC 3986 compliant URIs. For example, parsing of URIs is done using Uri.parse:

import std.uri (Uri)

let uri = Uri
  .parse('https://example.com/hello.html?key=value')
  .or_panic

uri.scheme # => Option.Some(Scheme.Https)

For more information, refer to the documentation of the Uri type.

Methods

decode

Percent decodes a Bytes value into a ByteArray

encode

Percent encodes a Bytes value into a ByteArray.

Types

Error

An error produced while parsing a URI.

Fragment

The fragment string of a URI.

Host

A named host or IP address.

Path

The path of a URI.

PathComponent

A single component in a URI path.

PathComponents

An iterator over the components in a Path.

Query

A (optionally) percent-encoded query string.

Scheme

The scheme of a URI.

Uri

A type that represents a URI.

UserInfo

A username and an optional password.

Values

A mapping of URI/percent-encoded key-value pairs.