| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.Pipeline.Publish
Contents
Description
The first-party publish route, guarded before any upstream write. Credential selection follows the authenticated edge mode. Body limits and name agreement bound the request before the adapter relays it to the publication target.
Synopsis
- data PublishReplies response = PublishReplies {
- publishRelayed :: Status -> ResponseHeaders -> LByteString -> response
- publishError :: Status -> ResponseHeaders -> Text -> response
- servePublish :: PublishReplies response -> PackageName -> Request -> (response -> IO ResponseReceived) -> Handler ResponseReceived
Documentation
data PublishReplies response Source #
Route-owned replies, including the publication target's unrestricted status codes.
Constructors
| PublishReplies | |
Fields
| |
The first-party publish handler
servePublish :: PublishReplies response -> PackageName -> Request -> (response -> IO ResponseReceived) -> Handler ResponseReceived Source #
Relay a configured first-party publish after authentication and body guards.