ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Server.Pipeline.Sidecar

Description

Relay declared distribution companions under their parent's origin and integrity authority.

Synopsis

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.