Open Journal Systems
3.3.0
|
Public Member Functions | |
compress ($filter='zlib.deflate') | |
getContentEncoding () | |
getContentLength () | |
getContentMd5 ($rawOutput=false, $base64Encode=false) | |
getContentType () | |
setRewindFunction ($callable) | |
uncompress ($filter='zlib.inflate') | |
![]() | |
__toString () | |
close () | |
detachStream () | |
feof () | |
ftell () | |
getCustomData ($key) | |
getMetaData ($key=null) | |
getSize () | |
getStream () | |
getStreamType () | |
getUri () | |
getWrapper () | |
getWrapperData () | |
isConsumed () | |
isLocal () | |
isReadable () | |
isRepeatable () | |
isSeekable () | |
isWritable () | |
read ($length) | |
readLine ($maxLength=null) | |
rewind () | |
seek ($offset, $whence=SEEK_SET) | |
setCustomData ($key, $value) | |
setSize ($size) | |
setStream ($stream, $size=null) | |
write ($string) | |
Entity body used with an HTTP request or response
Definition at line 10 of file EntityBodyInterface.php.
Guzzle\Http\EntityBodyInterface::compress | ( | $filter = 'zlib.deflate' | ) |
If the stream is readable, compress the data in the stream using deflate compression. The uncompressed stream is then closed, and the compressed stream then becomes the wrapped stream.
string | $filter | Compression filter |
Implemented in Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Http\EntityBodyInterface::getContentEncoding | ( | ) |
Get the Content-Encoding of the EntityBody
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Http\EntityBodyInterface::getContentLength | ( | ) |
Get the Content-Length of the entity body if possible (alias of getSize)
Implemented in Guzzle\Http\EntityBody, Guzzle\Http\AbstractEntityBodyDecorator, and Guzzle\Http\ReadLimitEntityBody.
Guzzle\Http\EntityBodyInterface::getContentMd5 | ( | $rawOutput = false , |
|
$base64Encode = false |
|||
) |
Get an MD5 checksum of the stream's contents
bool | $rawOutput | Whether or not to use raw output |
bool | $base64Encode | Whether or not to base64 encode raw output (only if raw output is true) |
Implemented in Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Referenced by Guzzle\Http\EntityBody\calculateMd5(), and Guzzle\Plugin\Cache\DefaultCacheStorage\getBodyKey().
Guzzle\Http\EntityBodyInterface::getContentType | ( | ) |
Guess the Content-Type of a local stream
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Http\EntityBodyInterface::setRewindFunction | ( | $callable | ) |
Specify a custom callback used to rewind a non-seekable stream. This can be useful entity enclosing requests that are redirected.
mixed | $callable | Callable to invoke to rewind a non-seekable stream. The callback must accept an EntityBodyInterface object, perform the rewind if possible, and return a boolean representing whether or not the rewind was successful. |
Implemented in Guzzle\Http\CachingEntityBody, Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.
Guzzle\Http\EntityBodyInterface::uncompress | ( | $filter = 'zlib.inflate' | ) |
Decompress a deflated string. Once uncompressed, the uncompressed string is then used as the wrapped stream.
string | $filter | De-compression filter |
Implemented in Guzzle\Http\EntityBody, and Guzzle\Http\AbstractEntityBodyDecorator.