PHP 클래스 Zend\Diactoros\Request\Serializer
This class provides functionality for serializing a RequestInterface instance
to a string, as well as the reverse operation of creating a Request instance
from a string/stream representing a message.
파일 보기
프로젝트 열기: zendframework/zend-diactoros
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
fromStream ( Psr\Http\Message\StreamInterface $stream ) : Request |
Deserialize a request stream to a request instance. |
|
fromString ( string $message ) : Request |
Deserialize a request string to a request instance. |
|
toString ( Psr\Http\Message\RequestInterface $request ) : string |
Serialize a request message to a string. |
|
비공개 메소드들
메소드 상세
Deserialize a request stream to a request instance.
public static fromStream ( Psr\Http\Message\StreamInterface $stream ) : Request |
$stream |
Psr\Http\Message\StreamInterface |
|
리턴 |
Zend\Diactoros\Request |
|
Internally, casts the message to a stream and invokes fromStream().
Serialize a request message to a string.
public static toString ( Psr\Http\Message\RequestInterface $request ) : string |
$request |
Psr\Http\Message\RequestInterface |
|
리턴 |
string |
|