src/Request/Serializer.php
public static function fromString($message)
    {
        $stream = new Stream('php://temp', 'wb+');
        $stream->write($message);
        return self::fromStream($stream);
    }
public static function fromString($message)
    {
        $stream = new Stream('php://temp', 'wb+');
        $stream->write($message);
        return self::fromStream($stream);
    }
public static function fromString ( $ message ) { $ stream = new Stream ( 'php://temp' , 'wb+' ) ; $ stream -> write ( $ message ) ; return self :: fromStream ( $ stream ) ; }
Deserialize a request string to a request instance.

Internally, casts the message to a stream and invokes fromStream().

@param string $message
@return Request
@throws UnexpectedValueException when errors occur parsing the message.
Deserialize a request string to a request instance .