wai-extra-0.4.5: Provides some basic WAI handlers and middleware.

Network.Wai.Parse

Description

Some helpers for parsing data out of a raw WAI Request.

Synopsis

Documentation

parseHttpAccept :: ByteString -> [ByteString]Source

Parse the HTTP accept string to determine supported content types.

data Sink x y Source

A destination for data, the opposite of a Source.

Constructors

Sink 

Fields

sinkInit :: IO x
 
sinkAppend :: x -> ByteString -> IO x
 
sinkClose :: x -> IO y
 
sinkFinalize :: y -> IO ()
 

data FileInfo c Source

Information on an uploaded file.

Instances

Eq c => Eq (FileInfo c) 
Show c => Show (FileInfo c)