HttpRequestPool
PHP Manual

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
PHP Manual