linnet-0.4.0.1: Lightweight library for building HTTP API

Safe HaskellNone
LanguageHaskell2010

Linnet.Decode

Synopsis

Documentation

class Decode ct a where Source #

Decoding of HTTP request payload into some type a. Phantom type ct guarantees that compiler checks support of decoding some a from content of given Content-Type by looking for specific Decode instance.

class DecodePath a where Source #

Methods

decodePath :: Text -> Maybe a Source #

Instances
DecodePath Double Source # 
Instance details

Defined in Linnet.Decode

DecodePath Float Source # 
Instance details

Defined in Linnet.Decode

DecodePath Int Source # 
Instance details

Defined in Linnet.Decode

DecodePath Integer Source # 
Instance details

Defined in Linnet.Decode

DecodePath ByteString Source # 
Instance details

Defined in Linnet.Decode

DecodePath Text Source # 
Instance details

Defined in Linnet.Decode