@@ -168,10 +168,8 @@ module Network.HTTP.Req
168 -- *** Authentication
168 -- *** Authentication
169 -- $authentication
169 -- $authentication
170 , basicAuth
170 , basicAuth
172 , oAuth2Bearer
171 , oAuth2Bearer
173 , oAuth2Token
172 , oAuth2Token
175 -- *** Other
173 -- *** Other
177 , decompress
175 , decompress
@@ -237,8 +235,6 @@ import qualified Network.Connection as NC
237import qualified Network.HTTP.Client as L
235import qualified Network.HTTP.Client as L
238import qualified Network.HTTP.Client.Internal as LI
236import qualified Network.HTTP.Client.Internal as LI
239import qualified Network.HTTP.Client.TLS as L
237import qualified Network.HTTP.Client.TLS as L
240−import qualified Network.HTTP.Req.AWS as AWS
241−import qualified Network.HTTP.Req.OAuth1 as OAuth1
242import qualified Network.HTTP.Types as Y
238import qualified Network.HTTP.Types as Y
244#if MIN_VERSION_base(4,9,0)
240#if MIN_VERSION_base(4,9,0)
@@ -1059,19 +1055,6 @@ basicAuth
1059basicAuth username password = asFinalizer
1055basicAuth username password = asFinalizer
1060 (L.applyBasicAuth username password)
1056 (L.applyBasicAuth username password)
1062−-- | OAuth 1 authentication 'Option'.
1064−-- See also: <https://en.wikipedia.org/wiki/OAuth>.
1067− :: ByteString -- ^ Consumer token
1068− -> ByteString -- ^ Consumer secret
1069− -> ByteString -- ^ OAuth token
1070− -> ByteString -- ^ OAuth token secret
1072−oAuth1 ctoken csecret otoken osecret = asFinalizer
1073− (OAuth1.signRequest ctoken csecret otoken osecret)
1075-- | The 'Option' adds an OAuth2 bearer token. This is treated by many
1058-- | The 'Option' adds an OAuth2 bearer token. This is treated by many
1076-- services as the equivalent of a username and password.
1059-- services as the equivalent of a username and password.
@@ -1103,17 +1086,6 @@ oAuth2Token
1103oAuth2Token token = asFinalizer
1086oAuth2Token token = asFinalizer
1104 (attachHeader "Authorization" ("token " <> token))
1087 (attachHeader "Authorization" ("token " <> token))
1106−-- | The 'Option' adds AWS v4 request signature.
1108−-- See also: <https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html>.
1111− :: ByteString -- ^ AWS access key
1112− -> ByteString -- ^ AWS secret access key
1113− -> Option 'Https -- ^ Auth 'Option'
1114−awsAuth accessKey secretKey = asFinalizer
1115− (AWS.signRequest accessKey secretKey)
1117----------------------------------------------------------------------------
1089----------------------------------------------------------------------------
1118-- Request — Optional parameters — Other
1090-- Request — Optional parameters — Other