PHP Class TomSchlick\ServerPush\HttpPush

Mostrar archivo Open project: tomschlick/laravel-http2-server-push

Public Properties

Property Type Description
$resources array

Public Methods

Method Description
clear ( ) Clear all resources out of the queue.
generateLinks ( ) : array Generate the server push link strings.
getTypeByExtension ( string $resourcePath ) : string
hasLinks ( ) : boolean
queueResource ( string $resourcePath, string $type = null ) Push a resource onto the queue for the middleware.

Method Details

clear() public method

Clear all resources out of the queue.
public clear ( )

getTypeByExtension() public static method

public static getTypeByExtension ( string $resourcePath ) : string
$resourcePath string
return string

queueResource() public method

Push a resource onto the queue for the middleware.
public queueResource ( string $resourcePath, string $type = null )
$resourcePath string
$type string

Property Details

$resources public_oe property

public array $resources
return array