Edit
↰
Home
↑
http
↑
Message
↻
Message::toCallback
↲
Body
↲
Parser
↲
Message::__construct
↲
Message::__toString
↲
Message::addBody
↲
Message::addHeader
↲
Message::addHeaders
↲
Message::count
↲
Message::current
↲
Message::detach
↲
Message::getBody
↲
Message::getHeader
↲
Message::getHeaders
↲
Message::getHttpVersion
↲
Message::getInfo
↲
Message::getParentMessage
↲
Message::getRequestMethod
↲
Message::getRequestUrl
↲
Message::getResponseCode
↲
Message::getResponseStatus
↲
Message::getType
↲
Message::isMultipart
↲
Message::key
↲
Message::next
↲
Message::prepend
↲
Message::reverse
↲
Message::rewind
↲
Message::serialize
↲
Message::setBody
↲
Message::setHeader
↲
Message::setHeaders
↲
Message::setHttpVersion
↲
Message::setInfo
↲
Message::setRequestMethod
↲
Message::setRequestUrl
↲
Message::setResponseCode
↲
Message::setResponseStatus
↲
Message::setType
↲
Message::splitMultipartBody
↲
Message::toStream
↲
Message::toString
↲
Message::unserialize
↲
Message::valid
#
http\Message
http\Message::toCallback
(
callable
$callback
)
Stream the message through a
callback
.
Params:
#
callable
$callback
#
The
callback
of the form function(
http\Message
$from
#
,
string
$data
#
).
Returns:
#
http\Message
,
self
.
Show Comments from Github Discussions