php8.5
Home/ Manual/ reference / yar/ Yar ConfigureOptions

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

NameDefaultChangeableChangelog
yar.connect_timeout1000INI_ALL
yar.content_typeapplication/octet-streamINI_ALL
yar.debugOffINI_ALL
yar.expose_infoOnINI_PERDIR
yar.packagerphpINI_PERDIR
yar.ssl_verifyOffINI_ALL
yar.timeout5000INI_ALL

Title

yar.connect_timeoutint

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_typestring

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.debugbool

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_infobool

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.packagerstring

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_verifybool

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.timeoutint

Timeout in milliseconds for RPC calls issued by Yar_Client and Yar_Concurrent_Client.

Source: reference/yar/ini.xml · from the official PHP manual (php/doc-en)