src/Util/ApiLoader.php
protected function createRequest($uri, $method = 'GET')
    {
        $headers = [];
        $version = $this->resolveVersion();
        if (!empty($version)) {
            $headers['Silverstripe-Framework-Version'] = $version;
        }

        return new Request($method, $uri, $headers);
    }
protected function createRequest($uri, $method = 'GET')
    {
        $headers = [];
        $version = $this->resolveVersion();
        if (!empty($version)) {
            $headers['Silverstripe-Framework-Version'] = $version;
        }

        return new Request($method, $uri, $headers);
    }
protected function createRequest ( $ uri , $ method = 'GET' ) { $ headers = [ ] ; $ version = $ this -> resolveVersion ( ) ; if ( ! empty ( $ version ) ) { $ headers [ 'Silverstripe-Framework-Version' ] = $ version ; } return new Request ( $ method , $ uri , $ headers ) ; }
Create a request with some standard headers

@param string $uri
@param string $method
@return Request
Create a request with some standard headers