Lucu-1.0: Embedded HTTP Server

Network.HTTP.Lucu.Router

Contents

Description

FIXME: doc

Synopsis

The Router arrow

data Router m α β Source

FIXME: doc

Instances

Monad m => ArrowKleisli m (Router m) 
Monad m => Arrow (Router m) 
Monad m => ArrowZero (Router m) 
Monad m => ArrowPlus (Router m) 
Monad m => ArrowChoice (Router m) 
Monad m => ArrowApply (Router m) 
Monad m => Category (Router m) 

runRouter :: (Applicative m, MonadIO m) => Router m α β -> α -> m (Maybe β)Source

FIXME: doc

Testing for URI scheme

anyScheme :: Arrow ⇝ => URI ⇝ (Host, Path)Source

FIXME: doc

scheme :: (ArrowChoice ⇝, ArrowZero ⇝) => CIAscii -> URI ⇝ (Host, Path)Source

FIXME: doc

http :: (ArrowChoice ⇝, ArrowPlus ⇝, ArrowZero ⇝) => URI ⇝ (Host, Path)Source

http = scheme "http" <+> scheme "https"

http' :: (ArrowChoice ⇝, ArrowZero ⇝) => URI ⇝ (Host, Path)Source

http' = scheme "http"

https :: (ArrowChoice ⇝, ArrowZero ⇝) => URI ⇝ (Host, Path)Source

https = scheme "https"