PHP 인터페이스 Zend\Stratigility\Http\ResponseInterface

Defines the following responses capabilities: - Write to the content - End the response (mark it complete) - Determine if the response is complete
사용 중단: since 1.3.0; to be removed with 2.0.0. Do not use the methods defined in this interface; use only those defined in PSR-7.
파일 보기 프로젝트 열기: zendframework/zend-stratigility 0 사용 예제들

공개 메소드들

메소드 설명
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