Simple way to transmit a resource across a non-persistent connection.
ModuleHTTP-4000.4.1Haskell98
Network.HTTP.Stream
Transmitting HTTP requests and responses holding String in their payload bodies.
This is one of the implementation modules for the Network.HTTP interface, representing
request and response content as Strings and transmitting them in non-packed form
(cf. Network.HTTP.HandleStream and its use of ByteStrings.) over Stream handles.
It is mostly here for backwards compatibility, representing how requests and responses
were transmitted up until the 4.x releases of the HTTP package.
For more detailed information about what the individual exports do, please consult the documentation for Network.HTTP. Notice however that the functions here do not perform any kind of normalization prior to transmission (or receipt); you are responsible for doing any such yourself, or, if you prefer, just switch to using Network.HTTP function instead.
- 6 values
- PackageHTTP-4000.4.1
- Exports6
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceStream.hs
module Network.Stream
Like simpleHTTP, but acting on an already opened stream.
Receive and parse a HTTP request from the given Stream. Should be used for server side interactions.
Very simple function, send a HTTP response over the given stream. This could be improved on to use different transfer types.