| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.Pipeline.Tarball.Types
Description
The values both legs of the artifact path hold: the route's reply constructors, and the coordinates of the artifact being served.
The caller's credential is deliberately absent from ArtifactRequest. It is confined to the
private leg, which takes it as its own argument, so the public leg cannot reach one.
Synopsis
- data TarballReplies response = TarballReplies {
- tarballError :: Status -> ResponseHeaders -> Refusal -> response
- tarballStream :: Status -> ResponseHeaders -> StreamingBody -> response
- tarballEmpty :: Status -> ResponseHeaders -> response
- data ArtifactRequest response = ArtifactRequest {
- arMode :: ArtifactServe
- arReplies :: TarballReplies response
- arRuntime :: ServeRuntime
- arDeps :: PackumentDeps
- arValidators :: RequestHeaders
- arPackage :: PackageName
- arVersion :: Version
- arFile :: Filename
- arRespond :: response -> IO ResponseReceived
The route's replies
data TarballReplies response Source #
The route-owned ways the tarball pipeline may answer.
Constructors
| TarballReplies | |
Fields
| |
One artifact request
data ArtifactRequest response Source #
One artifact request, as every stage of both legs needs it.
Constructors
| ArtifactRequest | |
Fields
| |