Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9
Manages links between resources
License
NotificationsYou must be signed in to change notification settings
symfony/web-link
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The WebLink component manages links between resources. It is particularlyuseful to advise clients to preload and prefetch documents through HTTP andHTTP/2 pushes.
This component implements theHTML5'sLinks,Preload andResourceHints W3C's specifications. It can alsobe used with extensions defined in theHTML5 link type extensionswiki.
composer require symfony/web-link
useSymfony\Component\WebLink\GenericLinkProvider;useSymfony\Component\WebLink\HttpHeaderSerializer;useSymfony\Component\WebLink\Link;$linkProvider = (newGenericLinkProvider()) ->withLink(newLink('preload','/bootstrap.min.css'));header('Link:'.(newHttpHeaderSerializer())->serialize($linkProvider->getLinks()));echo'Hello';
About
Manages links between resources
Topics
Resources
License
Code of conduct
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.