mighttpd2-4.0.7: High performance web server on WAI/warp
Safe HaskellSafe-Inferred
LanguageHaskell2010

Program.Mighty.Route

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 Route Source #

Instances

Instances details
Show Route Source # 
Instance details

Defined in Program.Mighty.Route

Methods

showsPrec :: Int -> Route -> ShowS #

show :: Route -> String #

showList :: [Route] -> ShowS #

Eq Route Source # 
Instance details

Defined in Program.Mighty.Route

Methods

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

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

data Block Source #

Constructors

Block [Domain] [Route] 

Instances

Instances details
Show Block Source # 
Instance details

Defined in Program.Mighty.Route

Methods

showsPrec :: Int -> Block -> ShowS #

show :: Block -> String #

showList :: [Block] -> ShowS #

Eq Block Source # 
Instance details

Defined in Program.Mighty.Route

Methods

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

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

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