PHP Class Zend\Diactoros\Response\Serializer

Inheritance: extends Zend\Diactoros\AbstractSerializer
Afficher le fichier Open project: zendframework/zend-diactoros Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
getStatusLine ( Psr\Http\Message\StreamInterface $stream ) : array Retrieve the status line for the message.

Method Details

fromStream() public static méthode

Parse a response from a stream.
public static fromStream ( Psr\Http\Message\StreamInterface $stream ) : Psr\Http\Message\ResponseInterface
$stream Psr\Http\Message\StreamInterface
Résultat Psr\Http\Message\ResponseInterface

fromString() public static méthode

Deserialize a response string to a response instance.
public static fromString ( string $message ) : Response
$message string
Résultat Zend\Diactoros\Response

toString() public static méthode

Create a string representation of a response.
public static toString ( Psr\Http\Message\ResponseInterface $response ) : string
$response Psr\Http\Message\ResponseInterface
Résultat string