HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulewreq-0.5.4.3Haskell98

Network.Wreq.Types

HTTP client types.

  • 11 types
  • 4 classes
  • 1 value
  • Packagewreq-0.5.4.3
  • Exports16
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceTypes.hs

Client configuration

4 declarations
datadata Options
#

Options for configuring a client.

Constructors

Instances1Show
  • Show OptionsDefined in wreq-0.5.4.3 · Network.Wreq.Internal.Types
datadata Auth
#

Supported authentication types.

Do not use HTTP authentication unless you are using TLS encryption. These authentication tokens can easily be captured and reused by an attacker if transmitted in the clear.

Constructors

Instances2Eq, Show
  • Eq AuthDefined in wreq-0.5.4.3 · Network.Wreq.Internal.Types
  • Show AuthDefined in wreq-0.5.4.3 · Network.Wreq.Internal.Types

Request payloads

4 declarations
classclass Postable a where
#

A type that can be converted into a POST request payload.

Methods

Instances11Postable, …
classclass Patchable a where
#

A type that can be converted into a PATCH request payload.

Methods

Instances11Patchable, …
classclass Putable a where
#

A type that can be converted into a PUT request payload.

Methods

Instances11Putable, …

URL-encoded forms

datadata FormParam where
#

A key/value pair for an application/x-www-form-urlencoded POST request body.

Constructors

Instances7Show, Postable, Patchable, Putable, …
classclass FormValue a where
#

A type that can be rendered as the value portion of a key/value pair for use in an application/x-www-form-urlencoded POST body. Intended for use with the FormParam type.

The instances for String, strict Text, and lazy Text are all encoded using UTF-8 before being URL-encoded.

The instance for Maybe gives an empty string on Nothing, and otherwise uses the contained type's instance.

Methods

Instances21FormValue, …

Headers

2 declarations

Errors

1 declaration

Request handling

3 declarations
datadata Req
#

A request that is ready to be submitted.

valuereqURL :: Req -> ByteString
#

Return the URL associated with the given Req.

This includes the port number if not standard, and the query string if one exists.

typetype Run body = Req -> IO (Response body)
#

A function that runs a request and returns the associated response.

Orphan instances

54 instances