Lucu-1.0: Embedded HTTP Server

Network.HTTP.Lucu.ETag

Description

An internal module for entity tags.

Synopsis

Documentation

data ETag Source

An entity tag consists of a weakness flag and an opaque string.

Constructors

ETag 

Fields

etagIsWeak :: !Bool

The weakness flag. Weak tags looks like W/"blahblah" and strong tags are like "blahblah". See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.3.3

etagToken :: !Ascii

An opaque string. Only characters from 0x20 (sp) to 0x7e (~) are allowed.

Instances

Eq ETag 
Data ETag 
Show ETag 
Typeable ETag 
Lift ETag 
ConvertSuccess ETag Ascii 
ConvertSuccess ETag AsciiBuilder 
ConvertAttempt ETag Ascii 
ConvertAttempt ETag AsciiBuilder 
Default (Parser [ETag]) 
Default (Parser ETag) 

strongETag :: Ascii -> 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 :: Ascii -> ETagSource

This is equivalent to ETag True.