snap-server-0.2.1: A fast, iteratee-based, epoll-enabled web server for the Snap FrameworkSource codeContentsIndex
Snap.Http.Server
Description
The Snap HTTP server is a high performance, epoll-enabled, iteratee-based web server library written in Haskell. Together with the snap-core library upon which it depends, it provides a clean and efficient Haskell programming interface to the HTTP protocol.
Synopsis
httpServe :: ByteString -> Int -> ByteString -> Maybe FilePath -> Maybe FilePath -> Snap () -> IO ()
Documentation
httpServeSource
:: ByteStringbind address, or "*" for all
-> Intport to bind to
-> ByteStringlocal hostname (server name)
-> Maybe FilePathpath to the (optional) access log
-> Maybe FilePathpath to the (optional) error log
-> Snap ()handler procedure
-> IO ()
Starts serving HTTP requests on the given port using the given handler. This function never returns; to shut down the HTTP server, kill the controlling thread.
Produced by Haddock version 2.6.1