public function EntityEnclosingRequest::__construct

Create a new request

Parameters

string $method HTTP method:

string|Url $url HTTP URL to connect to. The URI scheme, host header, and URI are parsed from the: full URL. If query string parameters are present they will be parsed as well.

array|Collection $headers HTTP headers:

Overrides Request::__construct

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/EntityEnclosingRequest.php, line 39

Class

EntityEnclosingRequest
HTTP request that sends an entity-body in the request message (POST, PUT, PATCH, DELETE)

Namespace

Guzzle\Http\Message

Code

public function __construct($method, $url, $headers = array()) {
  $this->postFields = new QueryString();
  $this->postFields
    ->setPrefix('');
  parent::__construct($method, $url, $headers);
}