Layton/Library/Http/Headers.php
public static function create(array $params = [])
    {
        $headers = new static();
        foreach ($params as $key => $value) {
            $headers->set($key, $value);
        }
        return $headers;
    }
public static function create(array $params = [])
    {
        $headers = new static();
        foreach ($params as $key => $value) {
            $headers->set($key, $value);
        }
        return $headers;
    }
public static function create ( array $ params = [ ] ) { $ headers = new static ( ) ; foreach ( $ params as $ key => $ value ) { $ headers -> set ( $ key , $ value ) ; } return $ headers ; }
Create the default values from httpMessages array.

@param array $httpMessages

@return static
Create the default values from httpMessages array .