PHP Интерфейс Phly\Conduit\Http\ResponseInterface

Defines the following respones capabilities: - Write to the content - End the response (mark it complete) - Determine if the response is complete
Показать файл Открыть проект

Открытые методы

Метод Описание
end ( string $data = null ) Mark the response as complete
isComplete ( ) : boolean Indicate whether or not the response is complete.
write ( string $data ) Write data to the response body

Описание методов

end() публичный Метод

A completed response should no longer allow manipulation of either headers or the content body. If $data is passed, that data should be written to the response body prior to marking the response as complete.
public end ( string $data = null )
$data string

isComplete() публичный Метод

I.e., if end() has previously been called.
public isComplete ( ) : boolean
Результат boolean

write() публичный Метод

Proxies to the underlying stream and writes the provided data to it.
public write ( string $data )
$data string