src/HttpClients/GuzzleHttpClient.php
private function getOptions(array $headers, $body, $options, $timeOut, $isAsyncRequest = false, $connectTimeOut = 10)
    {
        $default_options = [
            RequestOptions::HEADERS         => $headers,
            RequestOptions::BODY            => $body,
            RequestOptions::TIMEOUT         => $timeOut,
            RequestOptions::CONNECT_TIMEOUT => $connectTimeOut,
            RequestOptions::SYNCHRONOUS     => !$isAsyncRequest,
        ];

        return array_merge($default_options, $options);
    }
private function getOptions(array $headers, $body, $options, $timeOut, $isAsyncRequest = false, $connectTimeOut = 10)
    {
        $default_options = [
            RequestOptions::HEADERS         => $headers,
            RequestOptions::BODY            => $body,
            RequestOptions::TIMEOUT         => $timeOut,
            RequestOptions::CONNECT_TIMEOUT => $connectTimeOut,
            RequestOptions::SYNCHRONOUS     => !$isAsyncRequest,
        ];

        return array_merge($default_options, $options);
    }
private function getOptions ( array $ headers , $ body , $ options , $ timeOut , $ isAsyncRequest = false , $ connectTimeOut = 10 ) { $ default_options = [ RequestOptions :: HEADERS => $ headers , RequestOptions :: BODY => $ body , RequestOptions :: TIMEOUT => $ timeOut , RequestOptions :: CONNECT_TIMEOUT => $ connectTimeOut , RequestOptions :: SYNCHRONOUS => ! $ isAsyncRequest , ] ; return array_merge ( $ default_options , $ options ) ; }
Prepares and returns request options.

@param array $headers
@param       $body
@param       $options
@param       $timeOut
@param       $isAsyncRequest
@param int   $connectTimeOut

@return array
Prepares and returns request options .