1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 03:27:27 +00:00

add accesslog middleware (rel: #1601)

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-06 10:38:48 +03:00
parent bf9f7617e2
commit 0be856e54c
16 changed files with 339 additions and 347 deletions

View File

@@ -64,9 +64,9 @@ type DirCacheOptions struct {
// See `DefaultDirOptions`.
type DirOptions struct {
// Defaults to "/index.html", if request path is ending with **/*/$IndexName
// then it redirects to **/*(/) which another handler is handling it,
// that another handler, called index handler, is auto-registered by the framework
// if end developer does not managed to handle it by hand.
// then it redirects to **/*(/).
// That index handler is registered automatically
// by the framework unless but it can be overridden.
IndexName string
// PushTargets filenames (map's value) to
// be served without additional client's requests (HTTP/2 Push)
@@ -94,10 +94,12 @@ type DirOptions struct {
// When files should served under compression.
Compress bool
// List the files inside the current requested directory if `IndexName` not found.
// List the files inside the current requested
// directory if `IndexName` not found.
ShowList bool
// If `ShowList` is true then this function will be used instead
// of the default one to show the list of files of a current requested directory(dir).
// of the default one to show the list of files
// of a current requested directory(dir).
// See `DirListRich` package-level function too.
DirList DirListFunc