src/Http.php
public static function metadata(string $content): array
	{
		if (preg_match_all(self::$metadataPattern, $content, $matches) !== false) {
			$combine = array_combine($matches[1], $matches[2]);

			if ($combine === false) {
				throw new LogicException('Matches count is not equal.');
			}

			return $combine;
		}

		return [];
	}
public static function metadata(string $content): array
	{
		if (preg_match_all(self::$metadataPattern, $content, $matches) !== false) {
			$combine = array_combine($matches[1], $matches[2]);

			if ($combine === false) {
				throw new LogicException('Matches count is not equal.');
			}

			return $combine;
		}

		return [];
	}
public static function metadata ( string $ content ) : array { if ( preg_match_all ( self :: $ metadataPattern , $ content , $ matches ) !== false ) { $ combine = array_combine ( $ matches [ 1 ] , $ matches [ 2 ] ) ; if ( $ combine === false ) { throw new LogicException ( 'Matches count is not equal.' ) ; } return $ combine ; } return [ ] ; }
Gets http metadata from string

@return string[] [name => content]
Gets http metadata from string