cvs: peardoc /en/package/http/http-download http-download.xml setparams.xml setthrottledelay.xml
| From: | Michael Wallner | Date: | Tue, 31 Aug 2004 17:17:03 +0000 |
| Subject: | cvs: peardoc /en/package/http/http-download http-download.xml setparams.xml setthrottledelay.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-4809@lists.php.net to get a copy of this message | ||
mike Tue Aug 31 13:17:03 2004 EDT
Added files:
/peardoc/en/package/http/http-download setthrottledelay.xml
Modified files:
/peardoc/en/package/http/http-download http-download.xml
setparams.xml
Log:
* added setThrottleDelay()
* rearranged "See" section in http-download.xml and setparams.xml
http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/http-download.xml?r1=1.6&r2=1.7&ty=u Index: peardoc/en/package/http/http-download/http-download.xml diff -u peardoc/en/package/http/http-download/http-download.xml:1.6 peardoc/en/package/http/http-download/http-download.xml:1.7 --- peardoc/en/package/http/http-download/http-download.xml:1.6 Thu Aug 12 08:33:23 2004 +++ peardoc/en/package/http/http-download/http-download.xml Tue Aug 31 13:17:02 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="package.http.http-download.http-download"> <refnamediv> @@ -104,6 +104,12 @@ - amount of bytes read at once from files or resources </para> </listitem> + <listitem> + <para> + <parameter>$params['throttledelay']</parameter> + - amount of seconds to sleep after each chunk that has been sent + </para> + </listitem> </itemizedlist> </para> </listitem> @@ -112,29 +118,23 @@ </listitem> </itemizedlist> </para> - <para> - "Content-Disposition" is not HTTP compliant, - but most browsers follow this header, - so it was borrowed from MIME standard. - - It looks like this: - "Content-Disposition: attachment; filename=example.tgz". - </para> </refsect1> <refsect1 id="package.http.http-download.http-download.see"> &title.see; <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setcontentdisposition"> - <function>HTTP_Download::setContentDisposition</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setparams"> - <function>HTTP_Download::setParams</function> - </link> + See also + <link linkend="package.http.http-download.setfile"><function>setFile</function></link>, + <link linkend="package.http.http-download.setdata"><function>setData</function></link>, + <link linkend="package.http.http-download.setresource"><function>setResource</function></link>, + <link linkend="package.http.http-download.setgzip"><function>setGzip</function></link>, + <link linkend="package.http.http-download.setcache"><function>setCache</function></link>, + <link linkend="package.http.http-download.setcontenttype"><function>setContentType</function></link>, + <link linkend="package.http.http-download.setlastmodified"><function>setLastModified</function></link>, + <link linkend="package.http.http-download.setcontentdisposition"><function>setContentDisposition</function></link>, + <link linkend="package.http.http-download.setbuffersize"><function>setBufferSize</function></link>, + <link linkend="package.http.http-download.setthrottledelay"><function>setThrottleDelay</function></link>, + <link linkend="package.http.http-download.setparams"><function>HTTP_Download::setParams</function></link>. </para> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/setparams.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/package/http/http-download/setparams.xml diff -u peardoc/en/package/http/http-download/setparams.xml:1.8 peardoc/en/package/http/http-download/setparams.xml:1.9 --- peardoc/en/package/http/http-download/setparams.xml:1.8 Thu Aug 12 08:33:23 2004 +++ peardoc/en/package/http/http-download/setparams.xml Tue Aug 31 13:17:02 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="package.http.http-download.setparams"> <refnamediv> <refname><function>HTTP_Download::setParams</function></refname> @@ -108,6 +108,12 @@ - amount of bytes read at once from files or resources </para> </listitem> + <listitem> + <para> + <parameter>$params['throttledelay']</parameter> + - amount of seconds to sleep after each chunk that has been sent + </para> + </listitem> </itemizedlist> </para> </listitem> @@ -116,60 +122,22 @@ </listitem> </itemizedlist> </para> - <para> - "Content-Disposition" is not HTTP compliant, - but most browsers follow this header, - so it was borrowed from MIME standard. - </para> - <para> - It looks like this: - "Content-Disposition: attachment; filename=example.tgz". - </para> </refsect1> <refsect1 id="package.http.http-download.http-download.params.see"> &title.see; <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setfile"> - <function>HTTP_Download::setFile</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setdata"> - <function>HTTP_Download::setData</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setresource"> - <function>HTTP_Download::setResource</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setgzip"> - <function>HTTP_Download::setGzip</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setcontenttype"> - <function>HTTP_Download::setContentType</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setlastmodified"> - <function>HTTP_Download::setLastModified</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setcontentdisposition"> - <function>HTTP_Download::setContentDisposition</function> - </link> + See also + <link linkend="package.http.http-download.setfile"><function>setFile</function></link>, + <link linkend="package.http.http-download.setdata"><function>setData</function></link>, + <link linkend="package.http.http-download.setresource"><function>setResource</function></link>, + <link linkend="package.http.http-download.setgzip"><function>setGzip</function></link>, + <link linkend="package.http.http-download.setcache"><function>setCache</function></link>, + <link linkend="package.http.http-download.setcontenttype"><function>setContentType</function></link>, + <link linkend="package.http.http-download.setlastmodified"><function>setLastModified</function></link>, + <link linkend="package.http.http-download.setcontentdisposition"><function>setContentDisposition</function></link>, + <link linkend="package.http.http-download.setbuffersize"><function>setBufferSize</function></link>, + <link linkend="package.http.http-download.setthrottledelay"><function>setThrottleDelay</function></link>. </para> </refsect1> http://cvs.php.net/co.php/peardoc/en/package/http/http-download/setthrottledelay.xml?r=1.1&p=1 Index: peardoc/en/package/http/http-download/setthrottledelay.xml +++ peardoc/en/package/http/http-download/setthrottledelay.xml <!-- $Revision: 1.1 $ --> <refentry id="package.http.http-download.setthrottledelay"> <refnamediv> <refname><function>HTTP_Download::setThrottleDelay</function></refname> <refpurpose> Set throttle delay in seconds </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> void <function>HTTP_Download::setThrottleDelay</function> </funcdef> <paramdef> int <parameter> <optional>$seconds = 0</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http-download.setthrottledelay.desc"> &title.desc; <para> Set the amount of seconds to sleep after each chunck that has been sent. One can implement some sort of throttle through adjusting the buffer size and the throttle delay. With a setting of buffersize=25600 and throttledelay=1 HTTP_Download will sleep a second after each 25 K of data sent. </para> <para> Just be aware that if gzip'ing is enabled, decreasing the chunk size too much leads to proportionally increased network traffic due to added gzip header and bottom bytes around each chunk. </para> </refsect1> <refsect1 id="package.http.http-download.setthrottledelay.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> int <parameter> <optional>$seconds = 0</optional> </parameter> - amount of seconds to sleep </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http-download.setthrottledelay.return"> &title.returns; <para> Returns &type.void;. </para> </refsect1> <refsect1 id="package.http.http-download.setthrottledelay.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/http-download.xml?r1=1.6&r2=1.7&ty=u Index: peardoc/en/package/http/http-download/http-download.xml diff -u peardoc/en/package/http/http-download/http-download.xml:1.6 peardoc/en/package/http/http-download/http-download.xml:1.7 --- peardoc/en/package/http/http-download/http-download.xml:1.6 Thu Aug 12 08:33:23 2004 +++ peardoc/en/package/http/http-download/http-download.xml Tue Aug 31 13:17:02 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.6 $ --> +<!-- $Revision: 1.7 $ --> <refentry id="package.http.http-download.http-download"> <refnamediv> @@ -104,6 +104,12 @@ - amount of bytes read at once from files or resources </para> </listitem> + <listitem> + <para> + <parameter>$params['throttledelay']</parameter> + - amount of seconds to sleep after each chunk that has been sent + </para> + </listitem> </itemizedlist> </para> </listitem> @@ -112,29 +118,23 @@ </listitem> </itemizedlist> </para> - <para> - "Content-Disposition" is not HTTP compliant, - but most browsers follow this header, - so it was borrowed from MIME standard. - - It looks like this: - "Content-Disposition: attachment; filename=example.tgz". - </para> </refsect1> <refsect1 id="package.http.http-download.http-download.see"> &title.see; <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setcontentdisposition"> - <function>HTTP_Download::setContentDisposition</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setparams"> - <function>HTTP_Download::setParams</function> - </link> + See also + <link linkend="package.http.http-download.setfile"><function>setFile</function></link>, + <link linkend="package.http.http-download.setdata"><function>setData</function></link>, + <link linkend="package.http.http-download.setresource"><function>setResource</function></link>, + <link linkend="package.http.http-download.setgzip"><function>setGzip</function></link>, + <link linkend="package.http.http-download.setcache"><function>setCache</function></link>, + <link linkend="package.http.http-download.setcontenttype"><function>setContentType</function></link>, + <link linkend="package.http.http-download.setlastmodified"><function>setLastModified</function></link>, + <link linkend="package.http.http-download.setcontentdisposition"><function>setContentDisposition</function></link>, + <link linkend="package.http.http-download.setbuffersize"><function>setBufferSize</function></link>, + <link linkend="package.http.http-download.setthrottledelay"><function>setThrottleDelay</function></link>, + <link linkend="package.http.http-download.setparams"><function>HTTP_Download::setParams</function></link>. </para> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/http/http-download/setparams.xml?r1=1.8&r2=1.9&ty=u Index: peardoc/en/package/http/http-download/setparams.xml diff -u peardoc/en/package/http/http-download/setparams.xml:1.8 peardoc/en/package/http/http-download/setparams.xml:1.9 --- peardoc/en/package/http/http-download/setparams.xml:1.8 Thu Aug 12 08:33:23 2004 +++ peardoc/en/package/http/http-download/setparams.xml Tue Aug 31 13:17:02 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.8 $ --> +<!-- $Revision: 1.9 $ --> <refentry id="package.http.http-download.setparams"> <refnamediv> <refname><function>HTTP_Download::setParams</function></refname> @@ -108,6 +108,12 @@ - amount of bytes read at once from files or resources </para> </listitem> + <listitem> + <para> + <parameter>$params['throttledelay']</parameter> + - amount of seconds to sleep after each chunk that has been sent + </para> + </listitem> </itemizedlist> </para> </listitem> @@ -116,60 +122,22 @@ </listitem> </itemizedlist> </para> - <para> - "Content-Disposition" is not HTTP compliant, - but most browsers follow this header, - so it was borrowed from MIME standard. - </para> - <para> - It looks like this: - "Content-Disposition: attachment; filename=example.tgz". - </para> </refsect1> <refsect1 id="package.http.http-download.http-download.params.see"> &title.see; <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setfile"> - <function>HTTP_Download::setFile</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setdata"> - <function>HTTP_Download::setData</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setresource"> - <function>HTTP_Download::setResource</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setgzip"> - <function>HTTP_Download::setGzip</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setcontenttype"> - <function>HTTP_Download::setContentType</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setlastmodified"> - <function>HTTP_Download::setLastModified</function> - </link> - </para> - <para> - <emphasis>see</emphasis> - <link linkend="package.http.http-download.setcontentdisposition"> - <function>HTTP_Download::setContentDisposition</function> - </link> + See also + <link linkend="package.http.http-download.setfile"><function>setFile</function></link>, + <link linkend="package.http.http-download.setdata"><function>setData</function></link>, + <link linkend="package.http.http-download.setresource"><function>setResource</function></link>, + <link linkend="package.http.http-download.setgzip"><function>setGzip</function></link>, + <link linkend="package.http.http-download.setcache"><function>setCache</function></link>, + <link linkend="package.http.http-download.setcontenttype"><function>setContentType</function></link>, + <link linkend="package.http.http-download.setlastmodified"><function>setLastModified</function></link>, + <link linkend="package.http.http-download.setcontentdisposition"><function>setContentDisposition</function></link>, + <link linkend="package.http.http-download.setbuffersize"><function>setBufferSize</function></link>, + <link linkend="package.http.http-download.setthrottledelay"><function>setThrottleDelay</function></link>. </para> </refsect1> http://cvs.php.net/co.php/peardoc/en/package/http/http-download/setthrottledelay.xml?r=1.1&p=1 Index: peardoc/en/package/http/http-download/setthrottledelay.xml +++ peardoc/en/package/http/http-download/setthrottledelay.xml <!-- $Revision: 1.1 $ --> <refentry id="package.http.http-download.setthrottledelay"> <refnamediv> <refname><function>HTTP_Download::setThrottleDelay</function></refname> <refpurpose> Set throttle delay in seconds </refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcprototype> <funcdef> void <function>HTTP_Download::setThrottleDelay</function> </funcdef> <paramdef> int <parameter> <optional>$seconds = 0</optional> </parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.http.http-download.setthrottledelay.desc"> &title.desc; <para> Set the amount of seconds to sleep after each chunck that has been sent. One can implement some sort of throttle through adjusting the buffer size and the throttle delay. With a setting of buffersize=25600 and throttledelay=1 HTTP_Download will sleep a second after each 25 K of data sent. </para> <para> Just be aware that if gzip'ing is enabled, decreasing the chunk size too much leads to proportionally increased network traffic due to added gzip header and bottom bytes around each chunk. </para> </refsect1> <refsect1 id="package.http.http-download.setthrottledelay.parameter"> &title.param; <para> <itemizedlist> <listitem> <para> int <parameter> <optional>$seconds = 0</optional> </parameter> - amount of seconds to sleep </para> </listitem> </itemizedlist> </para> </refsect1> <refsect1 id="package.http.http-download.setthrottledelay.return"> &title.returns; <para> Returns &type.void;. </para> </refsect1> <refsect1 id="package.http.http-download.setthrottledelay.note"> &title.note; ¬e.notstatic; </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->