Safe Haskell | None |
---|---|
Language | GHC2021 |
Effectful.Wreq.Session
Synopsis
- data Session
- newSession :: forall (es :: [Effect]). Wreq :> es => Eff es Session
- newAPISession :: forall (es :: [Effect]). Wreq :> es => Eff es Session
- newSessionControl :: forall (es :: [Effect]). Wreq :> es => Maybe CookieJar -> ManagerSettings -> Eff es Session
- getSessionCookieJar :: forall (es :: [Effect]). Wreq :> es => Session -> Eff es (Maybe CookieJar)
- get :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ByteString)
- post :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => Session -> String -> a -> Eff es (Response ByteString)
- head_ :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ())
- options :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ())
- put :: forall (es :: [Effect]) a. (Wreq :> es, Putable a) => Session -> String -> a -> Eff es (Response ByteString)
- delete :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ByteString)
- customMethod :: forall (es :: [Effect]). Wreq :> es => String -> Session -> String -> Eff es (Response ByteString)
- getWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ByteString)
- postWith :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => Options -> Session -> String -> a -> Eff es (Response ByteString)
- headWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ())
- optionsWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ())
- putWith :: forall (es :: [Effect]) a. (Wreq :> es, Putable a) => Options -> Session -> String -> a -> Eff es (Response ByteString)
- deleteWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ByteString)
- customMethodWith :: forall (es :: [Effect]). Wreq :> es => String -> Options -> Session -> String -> Eff es (Response ByteString)
- customPayloadMethodWith :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => String -> Options -> Session -> String -> a -> Eff es (Response ByteString)
- customHistoriedMethodWith :: forall (es :: [Effect]). Wreq :> es => String -> Options -> Session -> String -> Eff es (HistoriedResponse ByteString)
- customHistoriedPayloadMethodWith :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => String -> Options -> Session -> String -> a -> Eff es (HistoriedResponse ByteString)
Session creation
A session that spans multiple requests. This is responsible for cookie management and TCP connection reuse.
newSession :: forall (es :: [Effect]). Wreq :> es => Eff es Session Source #
Lifted newSession
newAPISession :: forall (es :: [Effect]). Wreq :> es => Eff es Session Source #
Lifted newAPISession
More control-oriented session creation
newSessionControl :: forall (es :: [Effect]). Wreq :> es => Maybe CookieJar -> ManagerSettings -> Eff es Session Source #
Lifted newSessionControl
Get information about session state
getSessionCookieJar :: forall (es :: [Effect]). Wreq :> es => Session -> Eff es (Maybe CookieJar) Source #
Lifted getSessionCookieJar
HTTP verbs
get :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ByteString) Source #
Lifted get
post :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => Session -> String -> a -> Eff es (Response ByteString) Source #
Lifted post
head_ :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ()) Source #
Lifted head_
options :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ()) Source #
Lifted options
put :: forall (es :: [Effect]) a. (Wreq :> es, Putable a) => Session -> String -> a -> Eff es (Response ByteString) Source #
Lifted put
delete :: forall (es :: [Effect]). Wreq :> es => Session -> String -> Eff es (Response ByteString) Source #
Lifted delete
customMethod :: forall (es :: [Effect]). Wreq :> es => String -> Session -> String -> Eff es (Response ByteString) Source #
Lifted customMethod
Configurable verbs
getWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ByteString) Source #
Lifted getWith
postWith :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => Options -> Session -> String -> a -> Eff es (Response ByteString) Source #
Lifted postWith
headWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ()) Source #
Lifted headWith
optionsWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ()) Source #
Lifted optionsWith
putWith :: forall (es :: [Effect]) a. (Wreq :> es, Putable a) => Options -> Session -> String -> a -> Eff es (Response ByteString) Source #
Lifted putWith
deleteWith :: forall (es :: [Effect]). Wreq :> es => Options -> Session -> String -> Eff es (Response ByteString) Source #
Lifted deleteWith
customMethodWith :: forall (es :: [Effect]). Wreq :> es => String -> Options -> Session -> String -> Eff es (Response ByteString) Source #
Lifted customMethodWith
customPayloadMethodWith :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => String -> Options -> Session -> String -> a -> Eff es (Response ByteString) Source #
Lifted customPayloadMethodWith
customHistoriedMethodWith :: forall (es :: [Effect]). Wreq :> es => String -> Options -> Session -> String -> Eff es (HistoriedResponse ByteString) Source #
Lifted customHistoriedMethodWith
customHistoriedPayloadMethodWith :: forall (es :: [Effect]) a. (Wreq :> es, Postable a) => String -> Options -> Session -> String -> a -> Eff es (HistoriedResponse ByteString) Source #