Copyright | (c) 2011 MailRank Inc. |
---|---|
License | Apache |
Maintainer | Mark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Low-level content and link types and functions.
Synopsis
- data RpbContent
- data RpbLink
- empty :: RpbContent
- binary :: ByteString -> RpbContent
- json :: ToJSON a => a -> RpbContent
- link :: Bucket -> Key -> Tag -> RpbLink
Types
data RpbContent #
Fields :
value
:: Lens' RpbContent Data.ByteString.ByteString
contentType
:: Lens' RpbContent Data.ByteString.ByteString
maybe'contentType
:: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
charset
:: Lens' RpbContent Data.ByteString.ByteString
maybe'charset
:: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
contentEncoding
:: Lens' RpbContent Data.ByteString.ByteString
maybe'contentEncoding
:: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
vtag
:: Lens' RpbContent Data.ByteString.ByteString
maybe'vtag
:: Lens' RpbContent (Prelude.Maybe Data.ByteString.ByteString)
links
:: Lens' RpbContent [RpbLink]
vec'links
:: Lens' RpbContent (Data.Vector.Vector RpbLink)
lastMod
:: Lens' RpbContent Data.Word.Word32
maybe'lastMod
:: Lens' RpbContent (Prelude.Maybe Data.Word.Word32)
lastModUsecs
:: Lens' RpbContent Data.Word.Word32
maybe'lastModUsecs
:: Lens' RpbContent (Prelude.Maybe Data.Word.Word32)
usermeta
:: Lens' RpbContent [RpbPair]
vec'usermeta
:: Lens' RpbContent (Data.Vector.Vector RpbPair)
indexes
:: Lens' RpbContent [RpbPair]
vec'indexes
:: Lens' RpbContent (Data.Vector.Vector RpbPair)
deleted
:: Lens' RpbContent Prelude.Bool
maybe'deleted
:: Lens' RpbContent (Prelude.Maybe Prelude.Bool)
ttl
:: Lens' RpbContent Data.Word.Word32
maybe'ttl
:: Lens' RpbContent (Prelude.Maybe Data.Word.Word32)
Instances
Fields :
bucket
:: Lens' RpbLink Data.ByteString.ByteString
maybe'bucket
:: Lens' RpbLink (Prelude.Maybe Data.ByteString.ByteString)
key
:: Lens' RpbLink Data.ByteString.ByteString
maybe'key
:: Lens' RpbLink (Prelude.Maybe Data.ByteString.ByteString)
tag
:: Lens' RpbLink Data.ByteString.ByteString
maybe'tag
:: Lens' RpbLink (Prelude.Maybe Data.ByteString.ByteString)
Instances
Functions
empty :: RpbContent Source #
An empty piece of content.
binary :: ByteString -> RpbContent Source #
Content encoded as application/octet-stream
.
json :: ToJSON a => a -> RpbContent Source #
Content encoded as application/json
.