Edit
↰
Home
↑
http
↑
Message
↻
Message::__construct
↲
Body
↲
Parser
↲
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::toCallback
↲
Message::toStream
↲
Message::toString
↲
Message::unserialize
↲
Message::valid
#
void
http\Message::__construct
([
mixed
$message
=
NULL
[,
bool
$greedy
=
true
])
Create a new HTTP message.
Params:
#
Optional
mixed
$message
#
=
NULL
Either a
resource
or a
string
, representing the HTTP message.
Optional
bool
$greedy
#
=
true
Whether to read from a
$message
resource
until EOF.
Throws:
#
http\Exception\InvalidArgumentException
http\Exception\BadMessageException
Show Comments from Github Discussions