Yar ConfigureOptions
Yar ConfigureOptionsNameDefaultChangeableChangelogyar.connect_timeout1000INI_ALLyar.content_typeapplication/octet-streamINI_ALLyar.debugOffINI_ALLyar.expose_infoOnINI_PERDIRyar.packagerphpINI_PERDIRyar.ssl_verifyOffINI_ALLyar.timeout5000INI_ALL
Runtime Runtime
| Name | Default | Changeable | Changelog |
|---|---|---|---|
| yar.connect_timeout | 1000 | INI_ALL | |
| yar.content_type | application/octet-stream | INI_ALL | |
| yar.debug | Off | INI_ALL | |
| yar.expose_info | On | INI_PERDIR | |
| yar.packager | php | INI_PERDIR | |
| yar.ssl_verify | Off | INI_ALL | |
| yar.timeout | 5000 | INI_ALL |
Title
yar.connect_timeoutintConnect timeout in milliseconds for HTTP calls issued through
Yar_ClientandYar_Concurrent_Client.NoteThis value is interpreted in milliseconds. Prior to Yar 1.2.1 it was measured in seconds (the default was
1).yar.content_typestringThe value of the
Content-Typeresponse header sent byYar_Server. Yar speaks a binary protocol, so the default isapplication/octet-stream.yar.debugboolEnables debug mode. When on, Yar emits
E_WARNINGmessages with protocol-level details for every request and response, prefixed with[Debug Yar_Server]or[Debug Yar_Client]and a timestamp.yar.expose_infoboolWhether
Yar_Server::handleoutputs the service information page for non-POST (usually GET) requests. When this directive is off, such requests throw aYar_Server_Exceptioninstead.yar.packagerstringThe default packager used to serialize request and response bodies. Valid values are
php(PHP serialization),json, andmsgpack(only when Yar was built with--enable-msgpack).When Yar is built with msgpack support, the default becomes
msgpack.This value can be overridden per client with the
YAR_OPT_PACKAGERoption.yar.ssl_verifyboolWhether to verify the TLS certificate of HTTPS servers. When on, the curl transport sets
CURLOPT_SSL_VERIFYPEERandCURLOPT_SSL_VERIFYHOST, and requests to servers with invalid certificates fail. Off by default for backward compatibility. Available as of Yar 2.4.0.yar.timeoutintTimeout in milliseconds for RPC calls issued by
Yar_ClientandYar_Concurrent_Client.