PHP 8.3.4 Released!

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);
?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top