コード例 #1
0
ファイル: PostBody.php プロジェクト: neelie/respond
 public function detach()
 {
     $this->detached = true;
     $this->fields = $this->files = [];
     if ($this->body) {
         $this->body->close();
         $this->body = null;
     }
 }
コード例 #2
0
ファイル: PostBody.php プロジェクト: Vrian7ipx/cascadadev
 public function close()
 {
     return $this->body ? $this->body->close() : true;
 }
コード例 #3
0
 public function close()
 {
     $this->stream->close();
     $this->detach();
 }
コード例 #4
0
ファイル: GuzzleHttpStream.php プロジェクト: lamenath/fbp
 /**
  * {@inheritdoc}
  */
 protected function doClose()
 {
     $this->stream->close();
     return true;
 }