| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Server.Pipeline.Publish
Contents
Description
First-party publication checks caller authority and body identity before target discovery or relay.
Synopsis
- data PublishReplies response = PublishReplies {
- publishAllowedMethods :: ByteString
- publishDisabledReply :: ResponseHeaders -> Maybe HelpMessage -> response
- publishRelayed :: Status -> ResponseHeaders -> LByteString -> response
- publishError :: Status -> ResponseHeaders -> Text -> response
- servePublish :: PublishReplies response -> Maybe 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 -> Maybe PackageName -> Request -> (response -> IO ResponseReceived) -> Handler ResponseReceived Source #
Relay a configured first-party publish after authentication and body guards.