HttpRequest
PHP Manual

HttpRequest::setOptions

(PECL pecl_http >= 0.10.0)

HttpRequest::setOptionsSet options

说明

public bool HttpRequest::setOptions ([ array $options ] )

Set the request options to use.

请查阅完整的 request 选项组 列表。

参数

options

an associative array, which values will overwrite the currently set request options; if empty or omitted, the options of the HttpRequest object will be reset

返回值

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


HttpRequest
PHP Manual