Skip to main content

Module registry

Module registry 

Source
Expand description

NuGet V3 registry client.

NuGet base URLs are not hardcodable: the service index (https://api.nuget.org/v3/index.json) must be resolved first, then consulted for the flat-container (“PackageBaseAddress”), search (“SearchQueryService”), and registration (“RegistrationsBaseUrl”) resource URLs — the last one backs both publish-time freshness and NuGetRegistry::unlisted_versions_for_hover’s hover-only unlisted enrichment (D1).

Structs§

NuGetRegistry

Constants§

REGISTRY
Display name for NuGet used in not-found and API-response error messages.

Functions§

flat_container_url
Builds the flat-container version-enumeration URL for name.
package_url
Returns the nuget.org package page URL for name.
parse_flat_container
Parses a flat-container index.json response into descending-sorted versions.
registration_index_url
Builds the registration-hive index URL for name. Same lowercasing/encoding rationale as flat_container_url.
search_url
Builds the SearchQueryService URL for query, limited to limit results.