Portability | portable |
---|---|
Stability | experimental |
Maintainer | Nathan Hunter <nhunter@janrain.com> |
Safe Haskell | None |
Low-level content and link types and functions.
- data Content = Content {
- value :: !ByteString
- content_type :: !(Maybe ByteString)
- charset :: !(Maybe ByteString)
- content_encoding :: !(Maybe ByteString)
- vtag :: !(Maybe ByteString)
- links :: !(Seq Link)
- last_mod :: !(Maybe Word32)
- last_mod_usecs :: !(Maybe Word32)
- usermeta :: !(Seq Pair)
- indexes :: !(Seq Pair)
- data Link = Link {
- bucket :: !(Maybe ByteString)
- key :: !(Maybe ByteString)
- tag :: !(Maybe ByteString)
- empty :: Content
- binary :: ByteString -> Content
- json :: ToJSON a => a -> Content
- link :: Bucket -> Key -> Tag -> Link
Types
data Content
Content | |
|
data Link
Link | |
|
Functions
binary :: ByteString -> ContentSource
Content encoded as application/octet-stream
.