Dextrin.Uri (Dextrin v0.1.0)

Copy Markdown View Source

DXN uri (@uri "...", RFC 3986). Wraps the raw string exactly as given, not parsed into URI.t()URI.parse/1 is lenient in ways RFC 3986 isn't, and URI.to_string/1 doesn't always reproduce the original text byte-for-byte (e.g. component re-escaping), which would risk breaking round-trip. Parsing is left to the caller, who can always call URI.parse/1 on value themselves.

Summary

Types

t()

@type t() :: %Dextrin.Uri{value: String.t()}

Functions

new(value)

@spec new(String.t()) :: t()