mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Update doc for YAR_OPT_HEADER
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342731 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ed96e5230c
commit
4fc9d8bef4
2 changed files with 17 additions and 3 deletions
|
@ -28,7 +28,7 @@
|
|||
</varlistentry>
|
||||
<varlistentry xml:id="constant.yar-client-opt-packager">
|
||||
<term>
|
||||
<constant>YAR_CLIENT_OPT_PACKAGER</constant>
|
||||
<constant>YAR_OPT_PACKAGER</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
|
@ -38,7 +38,7 @@
|
|||
</varlistentry>
|
||||
<varlistentry xml:id="constant.yar-client-opt-timeout">
|
||||
<term>
|
||||
<constant>YAR_CLIENT_OPT_TIMEOUT</constant>
|
||||
<constant>YAR_OPT_TIMEOUT</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
|
@ -48,7 +48,7 @@
|
|||
</varlistentry>
|
||||
<varlistentry xml:id="constant.yar-client-opt-connect-timeout">
|
||||
<term>
|
||||
<constant>YAR_CLIENT_OPT_CONNECT_TIMEOUT</constant>
|
||||
<constant>YAR_OPT_CONNECT_TIMEOUT</constant>
|
||||
(<type>integer</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
|
@ -56,6 +56,16 @@
|
|||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.yar-client-opt-connect-timeout">
|
||||
<term>
|
||||
<constant>YAR_OPT_HEADER</constant>
|
||||
(<type>array</type>)
|
||||
</term>
|
||||
<listitem>
|
||||
<simpara>
|
||||
</simpara>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry xml:id="constant.yar-packager-php">
|
||||
<term>
|
||||
<constant>YAR_PACKAGER_PHP</constant>
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
YAR_OPT_PERSISTENT (Need server support),
|
||||
YAR_OPT_TIMEOUT,
|
||||
YAR_OPT_CONNECT_TIMEOUT
|
||||
YAR_OPT_HEADER (Since 2.0.4)
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
@ -68,6 +69,9 @@ $client->SetOpt(YAR_OPT_CONNECT_TIMEOUT, 1000);
|
|||
//Set packager to JSON
|
||||
$client->SetOpt(YAR_OPT_PACKAGER, "json");
|
||||
|
||||
//Set Custom headers
|
||||
$client->SetOpt(YAR_OPT_HEADER, array("hr1: val1", "hd2: val2"));
|
||||
|
||||
/* call remote service */
|
||||
$result = $client->some_method("parameter");
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue