PHP 클래스 Zend\Diactoros\Response\Serializer

상속: extends Zend\Diactoros\AbstractSerializer
파일 보기 프로젝트 열기: zendframework/zend-diactoros 1 사용 예제들

공개 메소드들

메소드 설명
fromStream ( Psr\Http\Message\StreamInterface $stream ) : Psr\Http\Message\ResponseInterface Parse a response from a stream.
fromString ( string $message ) : Response Deserialize a response string to a response instance.
toString ( Psr\Http\Message\ResponseInterface $response ) : string Create a string representation of a response.

비공개 메소드들

메소드 설명
getStatusLine ( Psr\Http\Message\StreamInterface $stream ) : array Retrieve the status line for the message.

메소드 상세

fromStream() 공개 정적인 메소드

Parse a response from a stream.
public static fromStream ( Psr\Http\Message\StreamInterface $stream ) : Psr\Http\Message\ResponseInterface
$stream Psr\Http\Message\StreamInterface
리턴 Psr\Http\Message\ResponseInterface

fromString() 공개 정적인 메소드

Deserialize a response string to a response instance.
public static fromString ( string $message ) : Response
$message string
리턴 Zend\Diactoros\Response

toString() 공개 정적인 메소드

Create a string representation of a response.
public static toString ( Psr\Http\Message\ResponseInterface $response ) : string
$response Psr\Http\Message\ResponseInterface
리턴 string