Exemple #1
0
 /**
  * @inheritdoc
  */
 public function getStream()
 {
     if ($this->stream === null) {
         $this->assertValidUpload();
         $this->stream = $this->messages->stream($this->file);
     }
     return $this->stream;
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 protected function requireUri()
 {
     if ($this->uri === null) {
         $this->uri = $this->messages->sapiUri($this->serverParams);
     }
 }
Exemple #3
0
 /**
  * Get PSR-7 response representation
  * @param Context|null $context HTTP context
  * @return ResponseInterface
  */
 public function asResponseMessage($context = null)
 {
     return $this->messages->response('1.1', $this->mergeContextHeaders($context), $this->body, $this->statusCode, $this->reasonPhrase);
 }