std.Uri.Component
- Kind
- union
- Module
std.Uri
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of std.Uri in the Zig reference. This page has 28 cards.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatEscaped(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatFragment(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatHost(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatPassword(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatPath(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatQuery(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatRaw(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn formatUser(component: Component, w: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn isEmpty(component: Component) bool
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn percentEncode(w: *Writer, raw: []const u8, comptime isValidChar: fn (u8) bool) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn toRaw(component: Component, buffer: []u8) error
Returned value may point into `buffer` or be the original string.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn toRawMaybeAlloc(component: Component, arena: Allocator) Allocator.Error![]const u8
Allocates the result with `arena` only if needed, so the result should not be freed.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn fmt(uri: *const Uri, flags: Format.Flags) std.fmt.Alt(Format, Format.default)
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn format(uri: *const Uri, writer: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn default(f: Format, writer: *Writer) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parse(text: []const u8) ParseError!Uri
The return value will contain strings pointing into the original `text`.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn parseAfterScheme(scheme: []const u8, text: []const u8) ParseError!Uri
Parses the URI or returns an error.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn percentDecodeBackwards(output: []u8, input: []const u8) []u8
Percent decodes all %XX where XX is a valid hex number. `output` may alias `input` if `output.ptr <= input.ptr`.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn percentDecodeInPlace(buffer: []u8) []u8
Percent decodes all %XX where XX is a valid hex number.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn resolveInPlace(base: Uri, new_len: usize, aux_buf: *[]u8) ResolveInPlaceError!Uri
Resolves a URI against a base URI, conforming to [RFC 3986, Section 5](https://www.rfc-editor.org/rfc/rfc3986#section-5) Assumes new location is already copied to the beginning of `aux_buf.*`.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn writeToStream(uri: *const Uri, writer: *Writer, flags: Format.Flags) Writer.Error!void
std.UriSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.