Serializable
The message body, represented as a PHP (temporary) stream.
NOTE:
Currently, http\Message\Body::addForm() creates multipart/form-data bodies.
None.
None.
Create a new message body, optionally referencing $stream.
void
http\Message\Body::__construct([resource
$stream = NULL
])
String cast handler.
Add form fields and files to the message body.
http\Message\Body http\Message\Body::addForm([array
$fields = NULL
[, array
$files = NULL
]])
Add a part to a multipart body.
http\Message\Body http\Message\Body::addPart(http\Message $part)
Append plain bytes to the message body.
Retrieve the ETag of the body.
Retrieve any boundary of the message body.
Retrieve the underlying stream resource
.
Implements Serializable
.
Stat size, atime, mtime and/or ctime.
mixed
http\Message\Body::stat([string
$field = NULL
])
Stream the message body through a callback
.
http\Message\Body http\Message\Body::toCallback(callable
$callback[, int
$offset = 0[, int
$maxlen = 0]])
Stream the message body into another stream $stream, starting from $offset, streaming $maxlen at most.
http\Message\Body http\Message\Body::toStream(resource
$stream[, int
$offset = 0[, int
$maxlen = 0]])
Retrieve the message body serialized to a string
.
Implements Serializable
.
void
http\Message\Body::unserialize(string
$serialized)