protected createRequest ( string $server, string $path, string $method, array $headers = [], string | resource | null $body = null ) : GuzzleHttp\Psr7\Request | ||
$server | string | Server |
$path | string | Path |
$method | string | Request method |
$headers | array | Array of headers |
$body | string | resource | null | Request body |
Результат | GuzzleHttp\Psr7\Request |
protected function createRequest(string $server, string $path, string $method, array $headers = [], $body = null) : \GuzzleHttp\Psr7\Request
{
return new \GuzzleHttp\Psr7\Request($method, rtrim($server, '/') . $path, $headers, $body);
}