do-spaces-0.2: DigitalOcean Spaces API bindings
Copyright(c) 2021 Rory Tyler Hayford
LicenseBSD-3-Clause
Maintainerrory.hayford@protonmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell2010

Network.DO.Spaces.Request

Description

Low-level implementations of Spaces REST transactions. You should not import this module directly, but should instead use the higher-level interface exposed by Network.DO.Spaces.Actions and its submodules

Synopsis

Documentation

newSpacesRequest :: MonadThrow m => SpacesRequestBuilder -> UTCTime -> m SpacesRequest Source #

Create a new SpacesRequest from a SpacesRequestBuilder, performing the necessary computations and setting the appropriate default headers

mkAuthorization :: SpacesRequest -> StringToSign -> Authorization Source #

Create an Authorization corresponding to the required AWS v4 Authorization header

finalize :: SpacesRequest -> Authorization -> Request Source #

Extract the Request from a SpacesRequest and set the requisite Authorization header