HttpRequestPool
在线手册:中文  英文

HttpRequestPool::attach

(PECL pecl_http >= 0.10.0)

HttpRequestPool::attachAttach HttpRequest

说明

public bool HttpRequestPool::attach ( HttpRequest $request )

Attach an HttpRequest object to this HttpRequestPool.

Warning

Set all options prior attaching!

参数

request

an HttpRequest object not already attached to any HttpRequestPool object

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

Throws HttpInvalidParamException, HttpRequestException, HttpRequestPoolException, HttpEncodingException.


HttpRequestPool
在线手册:中文  英文
易百教程