+<p>See HttpRequestPool::socketPerform().</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpRequestPool_valid">bool HttpRequestPool::valid()</h3>
+<p>Implements Iterator::valid().</p>
+<h3 id="HttpRequestPool_current">HttpRequest HttpRequestPool::current()</h3>
+<p>Implements Iterator::current().</p>
+<h3 id="HttpRequestPool_key">int HttpRequestPool::key()</h3>
+<p>Implements Iterator::key().</p>
+<h3 id="HttpRequestPool_next">void HttpRequestPool::next()</h3>
+<p>Implements Iterator::next().</p>
+<h3 id="HttpRequestPool_rewind">void HttpRequestPool::rewind()</h3>
+<p>Implements Iterator::rewind().</p>
+<h3 id="HttpRequestPool_count">int HttpRequestPool::count()</h3>
+<p>Implements Countable.</p>
+<p>Returns the number of attached HttpRequest objects.</p>
+<h3 id="HttpRequestPool_getAttachedRequests">array HttpRequestPool::getAttachedRequests()</h3>
+<p>Get attached HttpRequest objects.</p>
+<p>Returns an array containing all currently attached HttpRequest objects.</p>
+<h3 id="HttpRequestPool_getFinishedRequests">array HttpRequestPool::getFinishedRequests()</h3>
+<p>Get attached HttpRequest objects that already have finished their work.</p>
+<p>Returns an array containing all attached HttpRequest objects that<br />
+already have finished their work.</p>
+<hr noshade>
+<h1 id="http_response_object.c">http_response_object.c</h1>
+<h3 id="HttpResponse_setHeader">static bool HttpResponse::setHeader(string name, mixed value[, bool replace = true])</h3>
+<p>Send an HTTP header.</p>
+<p>Expects a string parameter containing the name of the header and a mixed<br />
+parameter containing the value of the header, which will be converted to<br />
+a string. Additionally accepts an optional boolean parameter, which<br />
+specifies whether an existing header should be replaced. If the second<br />
+parameter is unset no header with this name will be sent. </p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<p>Throws HttpHeaderException if http.only_exceptions is TRUE.</p>
+<h3 id="HttpResponse_getHeader">static mixed HttpResponse::getHeader([string name])</h3>
+<p>Get header(s) about to be sent.</p>
+<p>Accepts a string as optional parameter which specifies the name of the<br />
+header to read. If the parameter is empty or omitted, an associative array<br />
+with all headers will be returned.</p>
+<p>Returns either a string containing the value of the header matching name,<br />
+FALSE on failure, or an associative array with all headers.</p>
+<h3 id="HttpResponse_setCache">static bool HttpResponse::setCache(bool cache)</h3>
+<p>Whether it sould be attempted to cache the entitity.<br />
+This will result in necessary caching headers and checks of clients<br />
+"If-Modified-Since" and "If-None-Match" headers. If one of those headers<br />
+matches a "304 Not Modified" status code will be issued.</p>
+<p>NOTE: If you're using sessions, be shure that you set session.cache_limiter<br />
+to something more appropriate than "no-cache"!</p>
+<p>Expects a boolean as parameter specifying whether caching should be attempted.</p>
+<p>Returns TRUE ons success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getCache">static bool HttpResponse::getCache()</h3>
+<p>Get current caching setting.</p>
+<p>Returns TRUE if caching should be attempted, else FALSE.</p>
+<h3 id="HttpResponse_setGzip">static bool HttpResponse::setGzip(bool gzip)</h3>
+<p>Enable on-thy-fly gzipping of the sent entity.</p>
+<p>Expects a boolean as parameter indicating if GZip compression should be enabled.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getGzip">static bool HttpResponse::getGzip()</h3>
+<p>Get current gzipping setting.</p>
+<p>Returns TRUE if GZip compression is enabled, else FALSE.</p>
+<h3 id="HttpResponse_setCacheControl">static bool HttpResponse::setCacheControl(string control[, int max_age = 0])</h3>
+<p>Set a custom cache-control header, usually being "private" or "public";<br />
+The max_age parameter controls how long the cache entry is valid on the client side.</p>
+<p>Expects a string parameter containing the primary cache control setting.<br />
+Addtitionally accepts an int parameter specifying the max-age setting.</p>
+<p>Returns TRUE on success, or FALSE if control does not match one of<br />
+"public" , "private" or "no-cache".</p>
+<p>Throws HttpInvalidParamException if http.only_exceptions is TRUE.</p>
+<h3 id="HttpResponse_getCacheControl">static string HttpResponse::getCacheControl()</h3>
+<p>Get current Cache-Control header setting.</p>
+<p>Returns the current cache control setting as a string like sent in a header.</p>
+<h3 id="HttpResponse_setContentType">static bool HttpResponse::setContentType(string content_type)</h3>
+<p>Set the content-type of the sent entity.</p>
+<p>Expects a string as parameter specifying the content type of the sent entity.</p>
+<p>Returns TRUE on success, or FALSE if the content type does not seem to<br />
+contain a primary and secondary content type part.</p>
+<p>Throws HttpInvalidParamException if http.only_exceptions is TRUE.</p>
+<h3 id="HttpResponse_getContentType">static string HttpResponse::getContentType()</h3>
+<p>Get current Content-Type header setting.</p>
+<p>Returns the currently set content type as string.</p>
+<h3 id="HttpResponse_guessContentType">static string HttpResponse::guessContentType(string magic_file[, int magic_mode = MAGIC_MIME])</h3>
+<p>Attempts to guess the content type of supplied payload through libmagic.<br />
+If the attempt is successful, the guessed content type will automatically<br />
+be set as response content type. </p>
+<p>Expects a string parameter specifying the magic.mime database to use.<br />
+Additionally accepts an optional int parameter, being flags for libmagic.</p>
+<p>Returns the guessed content type on success, or FALSE on failure.</p>
+<p>Throws HttpRuntimeException, HttpInvalidParamException <br />
+if http.only_exceptions is TRUE.</p>
+<h3 id="HttpResponse_setContentDisposition">static bool HttpResponse::setContentDisposition(string filename[, bool inline = false])</h3>
+<p>Set the Content-Disposition. The Content-Disposition header is very useful<br />
+if the data actually sent came from a file or something similar, that should<br />
+be "saved" by the client/user (i.e. by browsers "Save as..." popup window).</p>
+<p>Expects a string parameter specifying the file name the "Save as..." dialogue<br />
+should display. Optionally accepts a bool parameter, which, if set to true<br />
+and the user agent knows how to handle the content type, will probably not<br />
+cause the popup window to be shown.</p>
+<p>Returns TRUE on success or FALSE on failure.</p>
+<h3 id="HttpResponse_getContentDisposition">static string HttpResponse::getContentDisposition()</h3>
+<p>Get current Content-Disposition setting.</p>
+<p>Returns the current content disposition as string like sent in a header.</p>
+<h3 id="HttpResponse_setETag">static bool HttpResponse::setETag(string etag)</h3>
+<p>Set a custom ETag. Use this only if you know what you're doing.</p>
+<p>Expects an unquoted string as parameter containing the ETag.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getETag">static string HttpResponse::getETag()</h3>
+<p>Get calculated or previously set custom ETag.</p>
+<p>Returns the calculated or previously set ETag as unquoted string.</p>
+<h3 id="HttpResponse_setLastModified">static bool HttpResponse::setLastModified(int timestamp)</h3>
+<p>Set a custom Last-Modified date.</p>
+<p>Expects an unix timestamp as parameter representing the last modification<br />
+time of the sent entity.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getLastModified">static int HttpResponse::getLastModified()</h3>
+<p>Get calculated or previously set custom Last-Modified date.</p>
+<p>Returns the calculated or previously set unix timestamp.</p>
+<h3 id="HttpResponse_setThrottleDelay">static bool HttpResponse::setThrottleDelay(double seconds)</h3>
+<p>Sets the throttle delay for use with HttpResponse::setBufferSize().</p>
+<p>Provides a basic throttling mechanism, which will yield the current process<br />
+resp. thread until the entity has been completely sent, though.</p>
+<p>Note: This doesn't really work with the FastCGI SAPI.</p>
+<p>Expects a double parameter specifying the seconds too sleep() after<br />
+each chunk sent.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getThrottleDelay">static double HttpResponse::getThrottleDelay()</h3>
+<p>Get the current throttle delay.</p>
+<p>Returns a double representing the throttle delay in seconds.</p>
+<h3 id="HttpResponse_setBufferSize">static bool HttpResponse::setBufferSize(int bytes)</h3>
+<p>Sets the send buffer size for use with HttpResponse::setThrottleDelay().</p>
+<p>Provides a basic throttling mechanism, which will yield the current process<br />
+resp. thread until the entity has been completely sent, though.</p>
+<p>Note: This doesn't really work with the FastCGI SAPI.</p>
+<p>Expects an int parameter representing the chunk size in bytes.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getBufferSize">static int HttpResponse::getBufferSize()</h3>
+<p>Get current buffer size.</p>
+<p>Returns an int representing the current buffer size in bytes.</p>
+<h3 id="HttpResponse_setData">static bool HttpResponse::setData(mixed data)</h3>
+<p>Set the data to be sent.</p>
+<p>Expects one parameter, which will be converted to a string and contains <br />
+the data to send.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getData">static string HttpResponse::getData()</h3>
+<p>Get the previously set data to be sent.</p>
+<p>Returns a string containing the previously set data to send.</p>
+<h3 id="HttpResponse_setStream">static bool HttpResponse::setStream(resource stream)</h3>
+<p>Set the resource to be sent.</p>
+<p>Expects a resource parameter referencing an already opened stream from<br />
+which the data to send will be read.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getStream">static resource HttpResponse::getStream()</h3>
+<p>Get the previously set resource to be sent.</p>
+<p>Returns the previously set resource.</p>
+<h3 id="HttpResponse_setFile">static bool HttpResponse::setFile(string file)</h3>
+<p>Set the file to be sent.</p>
+<p>Expects a string as parameter, specifying the path to the file to send.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<h3 id="HttpResponse_getFile">static string HttpResponse::getFile()</h3>
+<p>Get the previously set file to be sent.</p>
+<p>Returns the previously set path to the file to send as string.</p>
+<h3 id="HttpResponse_send">static bool HttpResponse::send([bool clean_ob = true])</h3>
+<p>Finally send the entity.</p>
+<p>Accepts an optional boolean parameter, specifying wheter the ouput<br />
+buffers should be discarded prior sending. A successful caching attempt<br />
+will cause a script termination, and write a log entry if the INI setting<br />
+http.cache_log is set.</p>
+<p>Returns TRUE on success, or FALSE on failure.</p>
+<p>Throws HttpHeaderException, HttpResponseException if http.onyl_excpetions is TRUE.</p>
+<p>Example:</p><pre><blockquote><code><span style="color: #000000"><br />
+<span style="color: #0000BB"><?php<br />HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">setCache</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">setContentType</span><span style="color: #007700">(</span><span style="color: #DD0000">'application/pdf'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">setContentDisposition</span><span style="color: #007700">(</span><span style="color: #DD0000">"$user.pdf"</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">setFile</span><span style="color: #007700">(</span><span style="color: #DD0000">'sheet.pdf'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">send</span><span style="color: #007700">();<br /></span><span style="color: #0000BB">?></span><br />
+</span></code></blockquote></p>
+<p></pre></p>
+<h3 id="HttpResponse_capture">static void HttpResponse::capture()</h3>
+<p>Capture script output.</p>
+<p>Example:</p><pre><blockquote><code><span style="color: #000000"><br />
+<span style="color: #0000BB"><?php<br />HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">setCache</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">HttpResponse</span><span style="color: #007700">::</span><span style="color: #0000BB">capture</span><span style="color: #007700">();<br /></span><span style="color: #FF8000">// script follows<br /></span><span style="color: #0000BB">?></span><br />
+</span></code></blockquote></p>
+<p></pre></p>