src/Slice/Http/ResponseAbstract.php
public static function fromString($response)
	{
		$code 	 = self::extractCode($response);
		$headers = self::extractHeaders($response);
		$body 	 = self::extractBody($response);
		$version = self::extractVersion($response);
		$message = self::extractMessage($response);
		
		# FIX FOR MULTIPLE HTTP RESPONSE CODE RETURNED BY SERVER 
		if ($code === 100 && count($headers) === 0 && self::extractCode($body)) {
			return self::fromString($body);
		}
		
		return new static($code, $headers, $body, $version, $message);
	}
public static function fromString($response)
	{
		$code 	 = self::extractCode($response);
		$headers = self::extractHeaders($response);
		$body 	 = self::extractBody($response);
		$version = self::extractVersion($response);
		$message = self::extractMessage($response);
		
		# FIX FOR MULTIPLE HTTP RESPONSE CODE RETURNED BY SERVER 
		if ($code === 100 && count($headers) === 0 && self::extractCode($body)) {
			return self::fromString($body);
		}
		
		return new static($code, $headers, $body, $version, $message);
	}
public static function fromString ( $ response ) { $ code = self :: extractCode ( $ response ) ; $ headers = self :: extractHeaders ( $ response ) ; $ body = self :: extractBody ( $ response ) ; $ version = self :: extractVersion ( $ response ) ; $ message = self :: extractMessage ( $ response ) ; # FIX FOR MULTIPLE HTTP RESPONSE CODE RETURNED BY SERVER  if ( $ code === 100 && count ( $ headers ) === 0 && self :: extractCode ( $ body ) ) { return self :: fromString ( $ body ) ; } return new static ( $ code , $ headers , $ body , $ version , $ message ) ; }
Create a new Response object from a string

@param string $response
@return \Slice\Http\AbstractResponse
Create a new Response object from a string