Here's a short explanation of
the configuration directives.
-
yar.connect_timeout
int
-
Connect timeout in milliseconds for HTTP calls issued through
Yar_Client and
Yar_Concurrent_Client.
Note:
This value is interpreted in milliseconds. Prior to Yar 1.2.1 it
was measured in seconds (the default was
1).
-
yar.content_type
string
-
The value of the Content-Type response header
sent by Yar_Server. Yar speaks a binary
protocol, so the default is
application/octet-stream.
-
yar.debug
bool
-
Enables debug mode. When on, Yar emits
E_WARNING messages with protocol-level
details for every request and response, prefixed with
[Debug Yar_Server] or
[Debug Yar_Client] and a timestamp.
-
yar.expose_info
bool
-
Whether Yar_Server::handle() outputs the
service information page for non-POST (usually GET) requests.
When this directive is off, such requests throw a
Yar_Server_Exception instead.
-
yar.packager
string
-
The default packager used to serialize request and response
bodies. Valid values are php (PHP
serialization), json, and
msgpack (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_PACKAGER option.
-
yar.ssl_verify
bool
-
Whether to verify the TLS certificate of HTTPS servers. When on,
the curl transport sets
CURLOPT_SSL_VERIFYPEER and
CURLOPT_SSL_VERIFYHOST, and requests to
servers with invalid certificates fail. Off by default for
backward compatibility. Available as of Yar 2.4.0.
-
yar.timeout
int
-
Timeout in milliseconds for RPC calls issued by
Yar_Client and
Yar_Concurrent_Client.