strelka-0.4.0.1: A flexible and composable HTTP-router

Safe HaskellNone
LanguageHaskell2010

Strelka.Model

Synopsis

Documentation

newtype Method Source #

HTTP Method in lower-case.

Constructors

Method ByteString 

newtype Path Source #

Constructors

Path ByteString 

Instances

Eq Path Source # 

Methods

(==) :: Path -> Path -> Bool #

(/=) :: Path -> Path -> Bool #

Ord Path Source # 

Methods

compare :: Path -> Path -> Ordering #

(<) :: Path -> Path -> Bool #

(<=) :: Path -> Path -> Bool #

(>) :: Path -> Path -> Bool #

(>=) :: Path -> Path -> Bool #

max :: Path -> Path -> Path #

min :: Path -> Path -> Path #

Show Path Source # 

Methods

showsPrec :: Int -> Path -> ShowS #

show :: Path -> String #

showList :: [Path] -> ShowS #

IsString Path Source # 

Methods

fromString :: String -> Path #

Hashable Path Source # 

Methods

hashWithSalt :: Int -> Path -> Int #

hash :: Path -> Int #

newtype Status Source #

Constructors

Status Int 

newtype InputStream Source #

IO action, which produces the next chunk. An empty chunk signals the end of the stream.

Constructors

InputStream (IO ByteString) 

newtype OutputStream Source #

A function on a chunk consuming and flushing IO actions.

Constructors

OutputStream ((ByteString -> IO ()) -> IO () -> IO ())