public function RequestFactoryInterface::create

Create a new request based on the HTTP method

Parameters

string $method HTTP method (GET, POST, PUT, PATCH, HEAD, DELETE, ...):

string|Url $url HTTP URL to connect to:

array|Collection $headers HTTP headers:

string|resource|array|EntityBodyInterface $body Body to send in the request:

Return value

RequestInterface

1 method overrides RequestFactoryInterface::create()
RequestFactory::create in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestFactory.php
Create a new request based on the HTTP method

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/RequestFactoryInterface.php, line 62

Class

RequestFactoryInterface
Request factory used to create HTTP requests

Namespace

Guzzle\Http\Message

Code

public function create($method, $url, $headers = null, $body = null);