Creates a new PSR-7 request.
public create ( string $method, string $uri, array $headers = [], array | string | null $body = null ) : Psr\Http\Message\RequestInterface | ||
$method | string | |
$uri | string | |
$headers | array | |
$body | array | string | null | Request body. If body is an array we will send a as multipart stream request. If array, each array *item* MUST look like: array ( 'content' => string|resource|StreamInterface, 'name' => string, 'filename'=> string (optional) 'headers' => array (optinal) ['header-name' => 'header-value'] ) |
return | Psr\Http\Message\RequestInterface |