src/Message/MessageFactory.php
public function request($method, $uri, $headers = array(), $content = '')
    {
        return new Request($method, $uri, $headers, $this->body($content), '1.0');
    }
public function request($method, $uri, $headers = array(), $content = '')
    {
        return new Request($method, $uri, $headers, $this->body($content), '1.0');
    }
public function request ( $ method , $ uri , $ headers = array ( ) , $ content = '' ) { return new Request ( $ method , $ uri , $ headers , $ this -> body ( $ content ) , '1.0' ) ; }
Creates a new instance of RequestInterface for the given request parameters

@param string                         $method
@param string|UriInterface            $uri
@param array                          $headers
@param string|ReadableStreamInterface $content
@return Request
Creates a new instance of RequestInterface for the given request parameters