mirror of
https://github.com/kataras/iris.git
synced 2026-02-05 10:15:56 +00:00
DirOptions.PushTargets: add example for https://github.com/kataras/iris/issues/1562
Former-commit-id: 940f07fdb1184266dc315441fb91afa5754092fa
This commit is contained in:
@@ -0,0 +1 @@
|
||||
app2/app2app3/dirs/dir1/text.txt
|
||||
@@ -0,0 +1 @@
|
||||
app2/app2app3/dirs/dir2/text.txt
|
||||
@@ -0,0 +1 @@
|
||||
app2/app2app3/dirs/text.txt
|
||||
@@ -0,0 +1 @@
|
||||
<h1>Hello App2App3 index</h1>
|
||||
1
_examples/file-server/http2push/assets/app2/index.html
Normal file
1
_examples/file-server/http2push/assets/app2/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Hello App2 index</h1>
|
||||
@@ -0,0 +1 @@
|
||||
just a text.
|
||||
@@ -4,7 +4,7 @@
|
||||
<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="icon" href="/public/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="/public/css/main.css" />
|
||||
<title>File Server</title>
|
||||
</head>
|
||||
|
||||
@@ -12,7 +12,7 @@ var opts = iris.DirOptions{
|
||||
// E.g. "/" (which serves the `IndexName` if not empty).
|
||||
//
|
||||
// Note: Requires running server under TLS,
|
||||
// that's why we use ListenAndServeTLS below.
|
||||
// that's why we use `iris.TLS` below.
|
||||
PushTargets: map[string][]string{
|
||||
"/": {
|
||||
"/public/favicon.ico",
|
||||
|
||||
Reference in New Issue
Block a user