Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > fe020c59895ac11f31b8eb3941ad2f43 > files > 72

ghc-HTTP-devel-4000.1.1-8.fc15.i686.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Network.HTTP.Stream</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Network-HTTP-Stream.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Network-HTTP-Stream.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">HTTP-4000.1.1: A library for client-side HTTP</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>non-portable (not tested)</td></tr><tr><th>Stability</th><td>experimental</td></tr><tr><th>Maintainer</th><td>Sigbjorn Finne &lt;sigbjorn.finne@gmail.com&gt;</td></tr></table><p class="caption">Network.HTTP.Stream</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Transmitting HTTP requests and responses holding <code>String</code> in their payload bodies.
 This is one of the implementation modules for the <a href="Network-HTTP.html">Network.HTTP</a> interface, representing
 request and response content as <code>String</code>s and transmitting them in non-packed form
 (cf. <a href="Network-HTTP-HandleStream.html">Network.HTTP.HandleStream</a> and its use of <code>ByteString</code>s.) over <code><a href="Network-Stream.html#t:Stream">Stream</a></code> 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.
</p><p>For more detailed information about what the individual exports do, please consult
 the documentation for <a href="Network-HTTP.html">Network.HTTP</a>. <em>Notice</em> 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
 <a href="Network-HTTP.html">Network.HTTP</a> function instead.
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short">module <a href="Network-Stream.html">Network.Stream</a></li><li class="src short"><a href="#v:simpleHTTP">simpleHTTP</a> :: <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)</li><li class="src short"><a href="#v:simpleHTTP_">simpleHTTP_</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)</li><li class="src short"><a href="#v:sendHTTP">sendHTTP</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)</li><li class="src short"><a href="#v:sendHTTP_notify">sendHTTP_notify</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)</li><li class="src short"><a href="#v:receiveHTTP">receiveHTTP</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a>)</li><li class="src short"><a href="#v:respondHTTP">respondHTTP</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="Network-Stream.html">Network.Stream</a></p></div><div class="top"><p class="src"><a name="v:simpleHTTP" class="def">simpleHTTP</a> :: <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)<a href="src/Network-HTTP-Stream.html#simpleHTTP" class="link">Source</a></p><div class="doc"><p>Simple way to transmit a resource across a non-persistent connection.
</p></div></div><div class="top"><p class="src"><a name="v:simpleHTTP_" class="def">simpleHTTP_</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)<a href="src/Network-HTTP-Stream.html#simpleHTTP_" class="link">Source</a></p><div class="doc"><p>Like <code><a href="Network-HTTP-Stream.html#v:simpleHTTP">simpleHTTP</a></code>, but acting on an already opened stream.
</p></div></div><div class="top"><p class="src"><a name="v:sendHTTP" class="def">sendHTTP</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)<a href="src/Network-HTTP-Stream.html#sendHTTP" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:sendHTTP_notify" class="def">sendHTTP_notify</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a>)<a href="src/Network-HTTP-Stream.html#sendHTTP_notify" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:receiveHTTP" class="def">receiveHTTP</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="Network-Stream.html#t:Result">Result</a> <a href="Network-HTTP-Base.html#t:Request_String">Request_String</a>)<a href="src/Network-HTTP-Stream.html#receiveHTTP" class="link">Source</a></p><div class="doc"><p>Receive and parse a HTTP request from the given Stream. Should be used 
   for server side interactions.
</p></div></div><div class="top"><p class="src"><a name="v:respondHTTP" class="def">respondHTTP</a> :: <a href="Network-Stream.html#t:Stream">Stream</a> s =&gt; s -&gt; <a href="Network-HTTP-Base.html#t:Response_String">Response_String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Network-HTTP-Stream.html#respondHTTP" class="link">Source</a></p><div class="doc"><p>Very simple function, send a HTTP response over the given stream. This 
   could be improved on to use different transfer types.
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>