PHP Class TomSchlick\ServerPush\HttpPush

Afficher le fichier Open project: tomschlick/laravel-http2-server-push

Méthodes publiques

Свойство Type Description
$resources array

Méthodes publiques

Méthode 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 méthode

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

getTypeByExtension() public static méthode

public static getTypeByExtension ( string $resourcePath ) : string
$resourcePath string
Résultat string

queueResource() public méthode

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
Résultat array