yaml-rpc-0.1: Simple library for network (TCP/IP) YAML RPCSource codeContentsIndex
Network.YAML.Dispatcher
Synopsis
type Worker = YamlObject -> IO YamlObject
type Rules = Map ByteString Worker
mkRules :: [(ByteString, Worker)] -> Rules
dispatch :: Rules -> Worker
dispatcher :: Int -> Rules -> IO ()
Documentation
type Worker = YamlObject -> IO YamlObjectSource
type Rules = Map ByteString WorkerSource
mkRules :: [(ByteString, Worker)] -> RulesSource
Build dispatching rules
dispatch :: Rules -> WorkerSource
Select worker from dispatching rules
dispatcher :: Int -> Rules -> IO ()Source
Listens given port and dispatches requests
Produced by Haddock version 2.6.1