StreamContent
in package
implements
Stringable, IHttpContent
Table of Contents
Interfaces
- Stringable
- IHttpContent
Methods
- __construct() : mixed
- __toString() : string
- fromFile() : StreamContent
- fromRequest() : StreamContent
- getStream() : Stream
Methods
__construct()
public
__construct(Stream $stream) : mixed
Parameters
- $stream : Stream
__toString()
public
__toString() : string
Return values
stringfromFile()
public
static fromFile(string $path) : StreamContent
Parameters
- $path : string
Return values
StreamContentfromRequest()
public
static fromRequest() : StreamContent
Return values
StreamContentgetStream()
public
getStream() : Stream