wreq-effectful-0.1.1.1: Adaptation of the wreq library for the effectful ecosystem.
Safe HaskellNone
LanguageGHC2021

Effectful.Wreq.Session

Synopsis

Session creation

data Session #

A session that spans multiple requests. This is responsible for cookie management and TCP connection reuse.

Instances

Instances details
Show Session 
Instance details

Defined in Network.Wreq.Internal.Types

newSession :: forall (es :: [Effect]). Wreq :> es => Eff es Session Source #

Lifted newSession

newAPISession :: forall (es :: [Effect]). Wreq :> es => Eff es Session Source #

More control-oriented session creation

Get information about session state

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 #

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 #

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