It is not possible to set a custom network timeout when using ODataClient->request().
This is because ODataRequest::_construct() sets the timeout to 0, and ODataClient->request() creates the request instance and directly executes it.
It would be nice if there was a way to override the timeout, e.g. by providing a ODataClient::createRequest method that can be overridden in subclasses (so that I don't have to override the whole ODataClient::request() method).
It is not possible to set a custom network timeout when using
ODataClient->request()
.This is because
ODataRequest::_construct()
sets the timeout to0
, andODataClient->request()
creates the request instance and directly executes it.It would be nice if there was a way to override the timeout, e.g. by providing a
ODataClient::createRequest
method that can be overridden in subclasses (so that I don't have to override the wholeODataClient::request()
method).