Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data Payload
- payloadText :: Encoding -> Body -> Payload
- data Encoding
- utf8Encoding :: Encoding
- class HasPayload a where
- type Body = ByteString
- class HasBody a where
- type Form = MultiMap
- _Form :: Prism' Payload Form
- class Formed a where
- form :: Traversal' a Form
- dummyPayloadForm :: Payload
Payload
Contains the Body
and any metadata associated with it.
payloadText :: Encoding -> Body -> Payload Source
class HasPayload a where 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