mini\Http\Message\FileResponse::withBody()
Method
public
Signature
public function withBody(Psr\Http\Message\StreamInterface $body): Psr\Http\Message\MessageInterface
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$body |
Psr\Http\Message\StreamInterface |
required | Documentation missing |
Returns
Psr\Http\Message\MessageInterface
Documentation
Return an instance with the specified message body.
The body MUST be a StreamInterface object.
This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return a new instance that has the new body stream.
Inherited From
mini\Http\Message\Response