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

HandleDir: add Attachments options to DirOptions

have a bit more work to do on that, if Gzip option is true then it  does not work and it's not the 'if gzip' statement inside the handler


Former-commit-id: 866578d29b6a63ee60a22b0eb9b37288c717b7e2
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-07-07 15:40:12 +03:00
parent cba6351d62
commit 645da2b2ef
4 changed files with 50 additions and 5 deletions

View File

@@ -98,6 +98,9 @@ type (
// `FileServer` and `Party#HandleDir` can use to serve files and assets.
// A shortcut for the `router.DirOptions`, useful when `FileServer` or `HandleDir` is being used.
DirOptions = router.DirOptions
// Attachments options for files to be downloaded and saved locally by the client.
// See `DirOptions`.
Attachments = router.Attachments
// DirListRichOptions the options for the `DirListRich` helper function.
// A shortcut for the `router.DirListRichOptions`.
// Useful when `DirListRich` function is passed to `DirOptions.DirList` field.