Set the state of the request
string $state State of the request (complete, sending, or new):
Overrides RequestInterface::setState
public function setState($state) {
$this->state = $state;
if ($this->state == self::STATE_NEW) {
$this->response = null;
}
elseif ($this->state == self::STATE_COMPLETE) {
$this
->processResponse();
$this->responseBody = null;
}
return $this;
}