function.httpresponse-setbuffersize.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 98 行
HTML
98 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Set buffer size</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.httpresponse-send.html">HttpResponse::send</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.httpresponse-setcache.html">HttpResponse::setCache</a></div> <div class="up"><a href="class.httpresponse.html">The HttpResponse</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.httpresponse-setbuffersize" class="refentry"> <div class="refnamediv"> <h1 class="refname">HttpResponse::setBufferSize</h1> <p class="verinfo">(PECL pecl_http:0.10.0-1.5.5)</p><p class="refpurpose"><span class="refname">HttpResponse::setBufferSize</span> — <span class="dc-title">Set buffer size</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">static</span> <span class="type">bool</span> <span class="methodname"><b><b>HttpResponse::setBufferSize</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$bytes</tt></span> )</div> <p class="para rdfs-comment"> Sets the send buffer size of the throttling mechanism. </p> <blockquote><p><b class="note">Note</b>: <span class="simpara">Provides a basic throttling mechanism, which will yield the current process or thread until the entity has been completely sent.</span></p></blockquote> <blockquote><p><b class="note">Note</b>: This may not work as expected with the following SAPI(s): FastCGI. <br /> </p></blockquote> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">bytes</tt></i></span> <dd> <p class="para"> the chunk size in bytes </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="methodname"><b><a href="function.httpresponse-getbuffersize.html" class="function" rel="rdfs-seeAlso">HttpResponse::getBufferSize</a></b></span></li> <li class="member"> <span class="methodname"><b><a href="function.httpresponse-getthrottledelay.html" class="function" rel="rdfs-seeAlso">HttpResponse::getThrottleDelay</a></b></span></li> <li class="member"> <span class="methodname"><b><a href="function.httpresponse-setthrottledelay.html" class="function" rel="rdfs-seeAlso">HttpResponse::setThrottleDelay</a></b></span></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.httpresponse-send.html">HttpResponse::send</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.httpresponse-setcache.html">HttpResponse::setCache</a></div> <div class="up"><a href="class.httpresponse.html">The HttpResponse</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?