OAuth::setRequestEngine
(PECL OAuth >= 1.0.0)
OAuth::setRequestEngine — 设置目标请求引擎
说明
public OAuth::setRequestEngine(int
$reqengine
): void设置请求引擎,用于发送 HTTP 请求。
警告
本函数还未编写文档,仅有参数列表。
参数
-
reqengine
-
想要的请求引擎。 设为
OAUTH_REQENGINE_STREAMS
则使用 PHP 流,设为OAUTH_REQENGINE_CURL
则使用 Curl。
返回值
没有返回值。
错误/异常
如果选择了一个无效的请求引擎,则发出一个 OAuthException 异常。
范例
示例 #1 OAuth::setRequestEngine() 例子
<?php
$consumer = new OAuth();
$consumer->setRequestEngine(OAUTH_REQENGINE_STREAMS);
?>

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/oauth.setrequestengine.php