| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.Pipeline.Sidecar
Description
Relay declared distribution companions under their parent's origin and integrity authority.
Synopsis
- sidecarAction :: TarballReplies response -> Method -> PackageName -> Version -> Filename -> ResponseAction response
- sidecarUrl :: Text -> Text
- selectSidecar :: IntegrityFloor floor => floor -> (Artifact -> Bool) -> Text -> PackageDetails -> Maybe Artifact
Documentation
sidecarAction :: TarballReplies response -> Method -> PackageName -> Version -> Filename -> ResponseAction response Source #
Bind GET and HEAD to the same metadata selection and bounded relay.
sidecarUrl :: Text -> Text Source #
Append the companion suffix to the path while preserving query and fragment text.
selectSidecar :: IntegrityFloor floor => floor -> (Artifact -> Bool) -> Text -> PackageDetails -> Maybe Artifact Source #
Select the first eligible source entry before checking its companion declaration.