yaml-rpc-0.1: Simple library for network (TCP/IP) YAML RPC
Source code
Contents
Index
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
YamlObject
Source
type
Rules
=
Map
ByteString
Worker
Source
mkRules
:: [(
ByteString
,
Worker
)] ->
Rules
Source
Build dispatching rules
dispatch
::
Rules
->
Worker
Source
Select worker from dispatching rules
dispatcher
::
Int
->
Rules
->
IO
()
Source
Listens given port and dispatches requests
Produced by
Haddock
version 2.6.1