| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Web.Hyperbole.Types.Response
Synopsis
- newtype Body = Body ByteString
- data ViewUpdate = ViewUpdate {
- viewId :: TargetViewId
- body :: Body
- data Response
- data ResponseError
- data ServerError = ServerError {}
Documentation
Constructors
| Body ByteString |
data ViewUpdate Source #
Constructors
| ViewUpdate | |
Fields
| |
A processed response for the client, which might be a ResponseError
Constructors
| Response ViewUpdate | |
| Redirect URI | |
| Err ResponseError |
data ResponseError Source #
Constructors
| NotFound | |
| ErrParse String | |
| ErrQuery String | |
| ErrSession Text String | |
| ErrServer Text | |
| ErrCustom ServerError | |
| ErrInternal | |
| ErrNotHandled (Event TargetViewId Encoded Encoded) | |
| ErrAuth Text |
Instances
| IsString ResponseError Source # | |
Defined in Web.Hyperbole.Types.Response Methods fromString :: String -> ResponseError # | |
| Show ResponseError Source # | |
Defined in Web.Hyperbole.Types.Response Methods showsPrec :: Int -> ResponseError -> ShowS # show :: ResponseError -> String # showList :: [ResponseError] -> ShowS # | |
data ServerError Source #
Constructors
| ServerError | |