This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

AtUri Pennington.StandardSite

Builds and parses AT Protocol at:// URIs of the form at://{did}/{collection}/{rkey}. Pure string work — no PDS access.

Methods

Build

#
public static string Build(string did, string collection, string rkey)

Composes an at:// URI from its parts.

Parameters

did string
collection string
rkey string

Returns

string

Parse

#
public static ValueTuple<string, string, string>? Parse(string uri)

Parses an at:// URI into its DID, collection NSID, and record key, or returns null when the input is not a well-formed three-part AT-URI.

Parameters

uri string

Returns

ValueTuple<string, string, string>?

Pennington.StandardSite.AtUri

namespace Pennington.StandardSite;

/// Builds and parses AT Protocol at:// URIs of the form at://{did}/{collection}/{rkey}. Pure string work — no PDS access.
public class AtUri
{
    /// Composes an at:// URI from its parts.
    
public static string Build(string did, string collection, string rkey)
; /// Parses an at:// URI into its DID, collection NSID, and record key, or returns null when the input is not a well-formed three-part AT-URI.
public static ValueTuple<string, string, string>? Parse(string uri)
; }