| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.PyPI.Route
Description
PyPI route contracts shared by serving and OpenAPI generation. Project names must be canonical, and distribution filenames must match their project. Ecluse.Core.Registry.PyPI.Route.Internal holds the table and everything it is built from.
Synopsis
The mount's router
pypiRouter :: MountRouter Source #
Match the first applicable route, otherwise answer with the 404 fallback.
The table, as OpenAPI reads it
pypiRouteSpecs :: NonEmpty RouteSpec Source #
Describe the live router and its deny-by-default catch-all for OpenAPI.
The served file URL (rendered from the route that claims it)
distributionPath :: PackageName -> Text -> Maybe Text Source #
Render through the distribution route so generated URLs obey its capture rules.