Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Manages links between resources

License

NotificationsYou must be signed in to change notification settings

symfony/web-link

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.

Getting Started

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';

Resources

Packages

No packages published

Contributors23

Languages


[8]ページ先頭

©2009-2025 Movatter.jp