StreamTransport
class StreamTransport extends AbstractTransport (View source)
The StreamTransport class.
Methods
ResponseInterface
request(RequestInterface $request)
Send a request to the server and return a Response object with the response.
from AbstractTransport
ResponseInterface
download(RequestInterface $request, string|StreamInterface $dest)
Use stream to download file.
static boolean
isSupported()
Method to check if HTTP transport layer available for using
Details
in AbstractTransport at line line 35
__construct(array|ArrayAccess $options = array())
Constructor.
in AbstractTransport at line line 49
ResponseInterface
request(RequestInterface $request)
Send a request to the server and return a Response object with the response.
in AbstractTransport at line line 82
mixed
getOption(string $name, mixed $default = null)
Get option value.
in AbstractTransport at line line 100
AbstractTransport
setOption(string $name, mixed $value)
Set option value.
in AbstractTransport at line line 112
array
getOptions()
Method to get property Options
in AbstractTransport at line line 124
AbstractTransport
setOptions(array $options)
Method to set property options
at line line 213
ResponseInterface
download(RequestInterface $request, string|StreamInterface $dest)
Use stream to download file.
at line line 240
static boolean
isSupported()
Method to check if HTTP transport layer available for using