happstack-server-0.3.2: Web related tools and services.Source codeContentsIndex
Happstack.Server.HTTP.LowLevel
Contents
HTTP Implementation
Problems
API
Synopsis
request :: Conf -> Handle -> Host -> (Request -> IO Response) -> IO ()
parseResponse :: ByteString -> Either String Response
putRequest :: Handle -> Request -> IO ()
listen :: Conf -> (Request -> IO Response) -> IO ()
module Happstack.Server.HTTP.Types
HTTP Implementation
The Happstack HTTP implementation supports HTTP 1.0 and 1.1. Multiple request on a connection including pipelining is supported.
Problems

Currently if a client sends an invalid HTTP request the whole connection is aborted and no further processing is done.

When the connection times out Happstack closes it. In future it could send a 408 response but this may be problematic if the sending of a response caused the problem.

API
request :: Conf -> Handle -> Host -> (Request -> IO Response) -> IO ()Source
parseResponse :: ByteString -> Either String ResponseSource
Unserializes the bytestring into a response. If there is an error it will return Left msg.
putRequest :: Handle -> Request -> IO ()Source
Serializes the request to the given handle
listen :: Conf -> (Request -> IO Response) -> IO ()Source
module Happstack.Server.HTTP.Types
Produced by Haddock version 2.4.2