Lucu-0.1: HTTP Daemonic LibraryContentsIndex
Network.HTTP.Lucu.ETag
Description
Manipulation of entity tags.
Synopsis
data ETag = ETag {
etagIsWeak :: !Bool
etagToken :: !String
}
strongETag :: String -> ETag
weakETag :: String -> ETag
eTagP :: Parser ETag
eTagListP :: Parser [ETag]
Documentation
data ETag
An entity tag is made of a weakness flag and a opaque string.
Constructors
ETag
etagIsWeak :: !BoolThe weakness flag. Weak tags looks like W/"blahblah" and strong tags are like "blahblah".
etagToken :: !StringAn opaque string. Only characters from 0x20 (sp) to 0x7e (~) are allowed.
show/hide Instances
Eq ETag
Show ETag
strongETag :: String -> ETag
This is equivalent to ETag False. If you want to generate an ETag from a file, try using Network.HTTP.Lucu.StaticFile.generateETagFromFile.
weakETag :: String -> ETag
This is equivalent to ETag True.
eTagP :: Parser ETag
eTagListP :: Parser [ETag]
Produced by Haddock version 2.1.0