src/HeaderField.php
public static function fromString($headerString)
    {
        $headerString = trim($headerString);
        list($name, $value) = explode(': ', trim($headerString), 2);
        return new self($name, $value);
    }
public static function fromString($headerString)
    {
        $headerString = trim($headerString);
        list($name, $value) = explode(': ', trim($headerString), 2);
        return new self($name, $value);
    }
public static function fromString ( $ headerString ) { $ headerString = trim ( $ headerString ) ; list ( $ name , $ value ) = explode ( ': ' , trim ( $ headerString ) , 2 ) ; return new self ( $ name , $ value ) ; }
Creates a header from a string representing a single header.
@param string $headerString
@return
Creates a header from a string representing a single header .