| |||||||||||||
| |||||||||||||
Description | |||||||||||||
A HandleStream version of Network.HTTP.Stream's public offerings. | |||||||||||||
Synopsis | |||||||||||||
| |||||||||||||
Documentation | |||||||||||||
simpleHTTP :: HStream ty => Request ty -> IO (Result (Response ty)) | |||||||||||||
Simple way to get a resource across a non-persistant connection. Headers that may be altered: Host Altered only if no Host header is supplied, HTTP/1.1 requires a Host header. Connection Where no allowance is made for persistant connections the Connection header will be set to close | |||||||||||||
simpleHTTP_ :: HStream ty => HandleStream ty -> Request ty -> IO (Result (Response ty)) | |||||||||||||
Like simpleHTTP, but acting on an already opened stream. | |||||||||||||
sendHTTP :: HStream ty => HandleStream ty -> Request ty -> IO (Result (Response ty)) | |||||||||||||
sendHTTP_notify :: HStream ty => HandleStream ty -> Request ty -> IO () -> IO (Result (Response ty)) | |||||||||||||
receiveHTTP :: HStream bufTy => HandleStream bufTy -> IO (Result (Request bufTy)) | |||||||||||||
Receive and parse a HTTP request from the given Stream. Should be used for server side interactions. | |||||||||||||
respondHTTP :: HStream ty => HandleStream ty -> Response ty -> IO () | |||||||||||||
Very simple function, send a HTTP response over the given stream. This could be improved on to use different transfer types. | |||||||||||||
simpleHTTP_debug :: HStream ty => FilePath -> Request ty -> IO (Result (Response ty)) | |||||||||||||
Produced by Haddock version 2.3.0 |