Lucu-0.2.1: HTTP Daemonic LibrarySource codeContentsIndex
Network.HTTP.Lucu.ETag
Description
Manipulation of entity tags.
Synopsis
data ETag = ETag {
etagIsWeak :: !Bool
etagToken :: !String
}
strongETag :: String -> ETag
weakETag :: String -> ETag
Documentation
data ETag Source
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
strongETag :: String -> ETagSource
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 -> ETagSource
This is equivalent to ETag True.
Produced by Haddock version 2.4.2