Метод |
Описание |
|
addHeader ( string $field, string $value ) : aerys\Response |
Append the specified header |
|
end ( string $finalBodyChunk = null ) |
Signify the end of streaming response output |
|
flush ( ) |
Request that buffered stream data be flushed to the client |
|
push ( string $url, array $headers = null ) : aerys\Response |
Indicate resources which a client likely needs to fetch. (e.g. Link: preload or HTTP/2 Server Push) |
|
setCookie ( string $name, string $value, array $flags = [] ) : aerys\Response |
Provides an easy API to set cookie headers
Those who prefer using addHeader() may do so. |
|
setHeader ( string $field, string $value ) : aerys\Response |
Set the specified header |
|
setReason ( string $phrase ) : aerys\Response |
Set the optional HTTP reason phrase |
|
setStatus ( integer $code ) : aerys\Response |
Set the numeric HTTP status code |
|
state ( ) : integer |
Retrieve the current response state |
|
stream ( string $partialBodyChunk ) : Amp\Promise |
Incrementally stream parts of the response entity body |
|