acme-http-0.2.2: fastest Haskell PONG server in the world

Safe HaskellNone

Acme.Serve

Synopsis

Documentation

listenOnSource

Arguments

:: Int

port number

-> IO Socket 

start TCP listening on a port

serveSource

Arguments

:: Int

port to listen on

-> (Request -> IO Response)

request handler

-> IO () 

listen on a port and handle Requests

serveSocketSource

Arguments

:: Socket

Socket in listen mode

-> (Request -> IO Response)

request handler

-> IO () 

handle Requests from an already listening Socket