Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
type LByteString = ByteString Source #
getFederationAsset :: (HasCallStack, MakesValue asset) => asset -> App Response Source #
uploadAssetV3 :: (HasCallStack, MakesValue user, MakesValue assetRetention) => user -> Bool -> assetRetention -> MIMEType -> LByteString -> App Response Source #
uploadAsset :: (HasCallStack, MakesValue user) => user -> App Response Source #
uploadProviderAsset :: (HasCallStack, MakesValue domain) => domain -> String -> String -> App Response Source #
uploadFreshAsset :: (HasCallStack, MakesValue user) => user -> String -> App Response Source #
txtAsset :: HasCallStack => String -> App RequestBody Source #
buildUploadAssetRequestBody :: (HasCallStack, MakesValue assetRetention) => Bool -> assetRetention -> LByteString -> MIMEType -> App RequestBody Source #
class IsAssetLocation key where Source #
locationPathFragment :: key -> App String Source #
Instances
IsAssetLocation String Source # | |
Defined in API.Cargohold | |
MakesValue loc => IsAssetLocation loc Source # | |
Defined in API.Cargohold locationPathFragment :: loc -> App String Source # |
noRedirect :: Request -> Request Source #
downloadAsset' :: (HasCallStack, MakesValue user, IsAssetLocation loc, IsAssetToken tok) => user -> loc -> tok -> App Response Source #
downloadAsset :: (HasCallStack, MakesValue user, MakesValue key, MakesValue assetDomain) => user -> assetDomain -> key -> String -> (Request -> Request) -> App Response Source #