public function EntityEnclosingRequest::setPostField

Set a POST field value

Parameters

string $key Key to set:

string $value Value to set:

Return value

EntityEnclosingRequestInterface

Overrides EntityEnclosingRequestInterface::setPostField

File

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

Class

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

Namespace

Guzzle\Http\Message

Code

public function setPostField($key, $value) {
  $this->postFields
    ->set($key, $value);
  $this
    ->processPostFields();
  return $this;
}