mirror of
https://github.com/kataras/iris.git
synced 2026-01-11 05:55:57 +00:00
add 'DirOptions.PushTargets' for http/2 push on index(es) - #1562
Former-commit-id: 5a3f626ba0fbcf10be979b5a800eba51e88602cd
This commit is contained in:
3
_examples/file-server/http2push/assets/css/main.css
Normal file
3
_examples/file-server/http2push/assets/css/main.css
Normal file
@@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: black;
|
||||
}
|
||||
BIN
_examples/file-server/http2push/assets/favicon.ico
Normal file
BIN
_examples/file-server/http2push/assets/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
18
_examples/file-server/http2push/assets/index.html
Normal file
18
_examples/file-server/http2push/assets/index.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/public/css/main.css" />
|
||||
<title>File Server</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<input type="button" onclick="onClick()" value="Click me!" />
|
||||
|
||||
<script type="text/javascript" src="/public/js/main.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
5
_examples/file-server/http2push/assets/js/main.js
Normal file
5
_examples/file-server/http2push/assets/js/main.js
Normal file
@@ -0,0 +1,5 @@
|
||||
console.log("example");
|
||||
|
||||
function onClick() {
|
||||
window.alert("button clicked");
|
||||
}
|
||||
Reference in New Issue
Block a user