module Network.Wreq.StringLess
(
get
, getWith
, post
, postWith
, head_
, headWith
, options
, optionsWith
, put
, putWith
, delete
, deleteWith
, customMethod
, customMethodWith
, customPayloadMethod
, customPayloadMethodWith
, foldGet
, foldGetWith
, Wreq.Options
, Wreq.defaults
, Wreq.manager
, Wreq.header
, Wreq.param
, Wreq.redirects
, Wreq.headers
, Wreq.params
, Wreq.cookie
, Wreq.cookies
, Wreq.checkResponse
, Wreq.Auth
, Wreq.AWSAuthVersion(..)
, Wreq.auth
, Wreq.basicAuth
, Wreq.oauth1Auth
, Wreq.oauth2Bearer
, Wreq.oauth2Token
, Wreq.awsAuth
, Wreq.Proxy(Proxy)
, Wreq.proxy
, Wreq.httpProxy
, Wreq.withManager
, Payload(..)
, FormParam(..)
, FormValue
, Wreq.Part
, Wreq.partName
, Wreq.partFileName
, Wreq.partContentType
, Wreq.partGetBody
, Wreq.partBS
, Wreq.partLBS
, Wreq.partText
, Wreq.partString
, Wreq.partFile
, Wreq.partFileSource
, Wreq.Response
, Wreq.responseBody
, Wreq.responseHeader
, Wreq.responseLink
, Wreq.responseCookie
, Wreq.responseHeaders
, Wreq.responseCookieJar
, Wreq.responseStatus
, Wreq.Status
, Wreq.statusCode
, Wreq.statusMessage
, Wreq.Link
, Wreq.linkURL
, Wreq.linkParams
, JSONError(..)
, Wreq.asJSON
, Wreq.asValue
, Wreq.Cookie
, Wreq.cookieName
, Wreq.cookieValue
, Wreq.cookieExpiryTime
, Wreq.cookieDomain
, Wreq.cookiePath
, Wreq.atto
, Wreq.atto_
) where
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as LBS
import qualified Network.Wreq as Wreq
import Network.Wreq.StringLess.StringLike
import Network.Wreq.Types
get :: StringLike s => s -> IO (Wreq.Response LBS.ByteString)
get = Wreq.get . toString
getWith :: StringLike s => Wreq.Options -> s -> IO (Wreq.Response LBS.ByteString)
getWith opts = Wreq.getWith opts . toString
post :: StringLike s => Postable a => s -> a -> IO (Wreq.Response LBS.ByteString)
post = Wreq.post . toString
postWith :: StringLike s => Postable a => Wreq.Options -> s -> a -> IO (Wreq.Response LBS.ByteString)
postWith opts = Wreq.postWith opts . toString
head_ :: StringLike s => s -> IO (Wreq.Response ())
head_ = Wreq.head_ . toString
headWith :: StringLike s => Wreq.Options -> s -> IO (Wreq.Response ())
headWith opts = Wreq.headWith opts . toString
options :: StringLike s => s -> IO (Wreq.Response ())
options = Wreq.options . toString
optionsWith :: StringLike s => Wreq.Options -> s -> IO (Wreq.Response ())
optionsWith opts = Wreq.optionsWith opts . toString
put :: StringLike s => Putable a => s -> a -> IO (Wreq.Response LBS.ByteString)
put = Wreq.put . toString
putWith :: StringLike s => Putable a => Wreq.Options -> s -> a -> IO (Wreq.Response LBS.ByteString)
putWith opts = Wreq.putWith opts . toString
delete :: StringLike s => s -> IO (Wreq.Response LBS.ByteString)
delete = Wreq.delete . toString
deleteWith :: StringLike s => Wreq.Options -> s -> IO (Wreq.Response LBS.ByteString)
deleteWith opts = Wreq.deleteWith opts . toString
customMethod :: StringLike s => s -> s -> IO(Wreq.Response LBS.ByteString)
customMethod method url = Wreq.customMethod (toString method) (toString url)
customMethodWith :: StringLike s => s -> Wreq.Options -> s -> IO (Wreq.Response LBS.ByteString)
customMethodWith method opts url = Wreq.customMethodWith (toString method) opts (toString url)
customPayloadMethod :: StringLike s => Postable a => s -> s -> a -> IO (Wreq.Response LBS.ByteString)
customPayloadMethod method url = Wreq.customPayloadMethod (toString method) (toString url)
customPayloadMethodWith :: StringLike s => Postable a => s -> Options -> s -> a -> IO (Wreq.Response LBS.ByteString)
customPayloadMethodWith method opts url = Wreq.customPayloadMethodWith (toString method) opts (toString url)
foldGet :: StringLike s => (a -> BS.ByteString -> IO a) -> a -> s -> IO a
foldGet f z url = Wreq.foldGet f z (toString url)
foldGetWith :: StringLike s => Options -> (a -> BS.ByteString -> IO a) -> a -> s -> IO a
foldGetWith opts f z url = Wreq.foldGetWith opts f z (toString url)