mighttpd2-3.4.2: High performance web server on WAI/warp

Safe HaskellNone
LanguageHaskell2010

Program.Mighty.Route

Contents

Synopsis

Paring a routing file

parseRoute Source #

Arguments

:: FilePath 
-> Domain

A default domain, typically "localhost"

-> Port

A default port, typically 80.

-> IO RouteDB 

Parsing a route file.

Types

data Block Source #

Constructors

Block [Domain] [Route] 

Instances

Eq Block Source # 

Methods

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

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

Show Block Source # 

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

type Src = Path Source #

A logical path specified in URL.

type Dst = Path Source #

A physical path in a file system.

type Port = Int Source #

RouteDBRef