Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data Payload
- payloadText :: Encoding -> Body -> Payload
- data Encoding
- utf8Encoding :: Encoding
- class Payloaded a where
- payload :: Traversal' a Payload
- type Body = ByteString
- class HasBody a where
- type Form = MultiMap
- _Form :: Prism' Payload Form
- class Formed a where
- form :: Traversal' a Form
- dummyPayloadForm :: Payload
Documentation
Contains the Body
and any metadata associated with it.
payloadText :: Encoding -> Body -> Payload Source
class Payloaded a where Source
A Traversal'
for types with a Payload
.
payload :: Traversal' a Payload Source
Body
type Body = ByteString Source
It's the main data associated with the Payload
of Request
or a
Response
.
Get the Body
for types with one.
Form
A Traversal'
to access a potential Form
.
form :: Traversal' a Form Source