Gerasimos (Makis) Maropoulos
ef2643b046
replace ioutil with io package and other minor improvements
2022-06-17 22:03:18 +03:00
Gerasimos (Makis) Maropoulos
67f5caacf1
fix #1882
2022-05-08 13:07:16 +03:00
Gerasimos (Makis) Maropoulos
96c2dec47f
dependency injection: func (...<T>) iris.Handler can be generated to a simple iris handler if <T> are static dependencies
2021-06-10 21:16:00 +03:00
Gerasimos (Makis) Maropoulos
5994fd5d4e
New iris.WithKeepAlive(time.Duration) Configurator is added as a helper to enable TCP listener featured with keep-alive
2021-01-31 21:24:15 +02:00
tuhao
33344283b8
use DirOptions.ShowHidden in DirListRich
2021-01-29 01:10:40 +08:00
tuhao
8b2bdd0dc2
modifiy DirList's default html format
2021-01-28 23:38:05 +08:00
Gerasimos (Makis) Maropoulos
8aedf6bc32
:)
2021-01-09 05:41:20 +02:00
Gerasimos (Makis) Maropoulos
4d09475c29
fix https://github.com/kataras/iris/issues/1672
2020-11-13 20:11:55 +02:00
Gerasimos (Makis) Maropoulos
7a19cfb211
add DirOptions.SPA field
...
relative to #1653
2020-11-07 00:08:49 +02:00
Gerasimos (Makis) Maropoulos
a04a6b5011
add accesslog+proxy example
2020-09-19 17:47:44 +03:00
Gerasimos (Makis) Maropoulos
0be856e54c
add accesslog middleware (rel: #1601 )
2020-09-06 10:38:48 +03:00
Gerasimos (Makis) Maropoulos
6fee09f11e
fix #1580
2020-08-14 03:19:59 +03:00
Gerasimos (Makis) Maropoulos
46a3a99adf
various improvements and new 'UseOnce' method - read HISTORY.md
2020-08-06 03:35:58 +03:00
Gerasimos (Makis) Maropoulos
2f8b29cb3d
examples: use ctx.ResponseWriter().Naive().(http.Pusher) instead
...
Former-commit-id: 7802f4eadf2b1c0a0d2a42ed5ebac3e5c77f88cc
2020-07-24 22:36:46 +03:00
Gerasimos (Makis) Maropoulos
c3205dafa1
New DirOptions.Cache field for in-memory caching and pre-compression for the fastest possible static file server
...
Read HISTORY.md it contains a breaking change, second parameter of HandleDir should be iris.Dir(...) instead of just a string
relative to: https://github.com/kataras/iris/issues/1556#issuecomment-661057446
Former-commit-id: 14b48a06fb3b99287dff543932be2937a64233b9
2020-07-24 13:03:49 +03:00
Gerasimos (Makis) Maropoulos
d697426cb6
minor
...
Change the new ctx.Compres to ctx.CompressWriter and iris.Compress and iris.CompressReader as one iris.Compression
Update the README example
(master development branch)
Former-commit-id: fb67858fe5be5662b5816df41020c28ff9a8c6f6
2020-07-20 13:36:39 +03:00
Gerasimos (Makis) Maropoulos
fb8e677c08
PushTargetRegexp: simplify code
...
rel to: https://github.com/kataras/iris/issues/1562#issuecomment-660415246
Former-commit-id: da04ae0543e9b743cd4989ded5983ae15316a879
2020-07-18 12:41:31 +03:00
Gerasimos (Makis) Maropoulos
e16abc96c6
PushTargetsRegexp: take advantage of the AssetNames on embedded file system
...
rel to: https://github.com/kataras/iris/issues/1562#issuecomment-660415246
Former-commit-id: 9e3fb4d71e14dda025a3af86cf210ff72127b716
2020-07-18 07:51:36 +03:00
Gerasimos (Makis) Maropoulos
552f990358
New iris.DirOptions.PushTargetsRegexp
...
rel to: https://github.com/kataras/iris/issues/1562#issuecomment-659702891
Former-commit-id: 778cf9146b730d424040ea9e259ce6500f53b563
2020-07-18 06:10:16 +03:00
Gerasimos (Makis) Maropoulos
0f79728c88
https://github.com/kataras/iris/issues/1562#issuecomment-659845730
...
Former-commit-id: 60d9b0d77693895fdfbebe83712e9cc1ee3f8f26
2020-07-17 12:03:20 +03:00
Gerasimos (Makis) Maropoulos
baeff3e80b
DirOptions.PushTargets: add example for https://github.com/kataras/iris/issues/1562
...
Former-commit-id: 940f07fdb1184266dc315441fb91afa5754092fa
2020-07-16 11:42:45 +03:00
Gerasimos (Makis) Maropoulos
fba8492e78
add 'DirOptions.PushTargets' for http/2 push on index(es) - #1562
...
Former-commit-id: 5a3f626ba0fbcf10be979b5a800eba51e88602cd
2020-07-16 08:03:55 +03:00
Gerasimos (Makis) Maropoulos
0f113dfcda
( #1554 ) Add support for all common compressions (write and read)
...
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation
Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
2020-07-10 23:21:09 +03:00
Gerasimos (Makis) Maropoulos
645da2b2ef
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
2020-07-07 15:40:12 +03:00
Gerasimos (Makis) Maropoulos
cba6351d62
HandleDir: customize file/dir listing page through registered view engine
...
Former-commit-id: 98bfd9d5a073c5bc7c2c167e2a72dd7b05bfb24a
2020-07-07 06:11:44 +03:00
Gerasimos (Makis) Maropoulos
dd72a1e398
file-server example: use a custom template for listing dirs/files
...
Former-commit-id: 5b9bb0be4ac3f5d463f0957a3074aa6e7b1a71f7
2020-07-06 16:06:48 +03:00
Gerasimos (Makis) Maropoulos
0b279c11fe
minor
...
Former-commit-id: f201fcad8fb425d0a5e9c32faa649b5199f60183
2020-07-05 23:35:45 +03:00
Gerasimos (Makis) Maropoulos
16a6372cc9
add a DirListRich helper to make the file listing a bit more appealing than its default
...
Former-commit-id: 1d8338cddac0856be1c9f1e7b6d8d400bee71bef
2020-07-05 23:27:32 +03:00
Gerasimos (Makis) Maropoulos
57dc64625d
file-server: fix ShowList on root dir
...
Former-commit-id: 6795382235d76942bcfd31ecc0b4ab02ecb85a8a
2020-07-05 05:39:48 +03:00
Gerasimos (Makis) Maropoulos
714e84b597
apply https://github.com/kataras/iris/issues/1500
...
Former-commit-id: 2b5ae1857a5815977507b6b8fc72dd0040d470ca
2020-04-29 21:16:43 +03:00
Gerasimos (Makis) Maropoulos
3093d65363
version 12.1.5
...
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
2020-02-02 16:29:06 +02:00
Gerasimos (Makis) Maropoulos
269b832ade
Update to version 12.1.4
...
Former-commit-id: aeb039ea25a831ad1087b1994be97b349a8ed4aa
2019-12-29 19:14:41 +02:00
Gerasimos (Makis) Maropoulos
a42f914ce8
minor README changes
...
Former-commit-id: becf1864dfbb24409f51122eaee5b1e2b979a20b
2019-11-05 22:12:26 +02:00
Gerasimos (Makis) Maropoulos
3945fa68d1
obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
...
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.
Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
0e2c44e231
fix embedded fs not access to dir list because of options.ShowList unnecessary check. Solves #1383
...
Former-commit-id: 1ad4535deb1c4792408a3bf63456b333aa752594
2019-10-25 01:04:08 +03:00
Gerasimos (Makis) Maropoulos
7e6dc3240a
nothing tremendous here
...
Former-commit-id: 9ae6a00400750b9769383ea28bb00f2b202fb79e
2019-06-27 16:28:44 +03:00
Gerasimos (Makis) Maropoulos
1f9ead426e
fix travis fail on deprecation example test
...
Former-commit-id: 3f6bb0f01702ab2c2cd7f348b29ec142af036cb3
2019-06-21 23:17:27 +03:00
Gerasimos (Makis) Maropoulos
d0104defa8
create the new FileServer and HandleDir, deprecate the rest APIBuilder/Party static methods and more
...
relative: https://github.com/kataras/iris/issues/1283 and removing pongo2 from vendor: https://github.com/kataras/iris/issues/1284
Former-commit-id: 3ec57b349f99faca2b8e36d9f7252db0b6ea080d
2019-06-21 19:43:25 +03:00
Gerasimos (Makis) Maropoulos
0f907a3dae
fix https://github.com/kataras/iris/issues/1273
...
Former-commit-id: 2b48b9b912e9eb8f5f2c6d413907dbfdae857e08
2019-06-14 11:26:56 +03:00
Gerasimos (Makis) Maropoulos
8b85b602df
fix https://github.com/kataras/iris/issues/1141 and https://github.com/kataras/iris/issues/1142
...
Former-commit-id: d8d73b3e1b713af9bf7b4712121324079ede6a41
2018-11-28 23:20:08 +02:00
Gerasimos Maropoulos
8e9deec4ab
Add one more browser (and 304 server) cache method using ETag and If-None-Match headers
...
And replace the 'ctx.WriteWithExpiration' with simple 'ctx.Write' at 'StaticEmbeddedHandler' of core/router/fs.go, now that we have plenty of options for client cache give the end-dev the oportunity to use them or not on static embedded handlers
Former-commit-id: 9c9e2f3de3c5ad8c9e14e453b67e6b649b02bde8
2018-03-18 11:55:05 +02:00
Gerasimos Maropoulos
bc45e6444c
Cleanup of some old code
...
Remove the StaticCacheDuration unused package-level variable from context/context.go and /core/router/api_builder.go it should be removed a year ago, now all the cache funcs and middlewares accept their own options | Remove duplicated header keys that are used on both context/context.go and core/router/fs.go by exporting context's one.
Former-commit-id: 2a5c840d26b32144d2b5b3173a1e4bb4324cecba
2018-03-17 02:27:25 +02:00
Gerasimos Maropoulos
8cec6a6f9b
remove any trailing slash that may passed on StaticEmbeddedHandler (although all examples shows the correct way but you never know)
...
Former-commit-id: 50ab9ddb2e738b4061622ac9ebcfec30e0cdecfa
2018-03-16 12:38:13 +02:00
Gerasimos Maropoulos
2d8652d7fb
fix miss content type occurred by commenting this on the previous commit
...
Former-commit-id: 3320cf863da92cb70f74b046a6a2475f83728932
2018-03-15 22:46:23 +02:00
Gerasimos Maropoulos
56215eeb71
Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md
...
Former-commit-id: 4f8b8c95c1b107a9be3b1ef6835ece949a75ceb6
2018-03-14 07:17:35 +02:00
Gerasimos (Makis) Maropoulos
019911237c
add context#StatusCodeNotSuccessful for customize even the most customized clients that are not compatible with the standards and fix the SPA
if static file serve handlers are passed as its AssetHandler
as reported at the chat.iris-go.com
...
Former-commit-id: ccd0815a09b9305bfbeaad7b46559dd86f34f20b
2018-01-31 02:35:22 +02:00
Gerasimos (Makis) Maropoulos
969c2e87d4
add Cache304
as an alternative to the server-side kataras/iris/cache middleware - it can perform better with less server overheat but it comes with a cost of 304 instead of 200 so custom clients must make that check
...
Former-commit-id: b0ba68c528c870fe060e2825c35689771a1d3680
2018-01-25 16:19:45 +02:00
Gerasimos (Makis) Maropoulos
befb1f0c08
some major improvements to the (server-side) cache middleware and an example of a client-side responsibility cache
...
Former-commit-id: 93d3a7a6f163c6d49f315f86d10e63f7b1b1d93a
2018-01-25 15:09:24 +02:00
Gerasimos (Makis) Maropoulos
bf13f7648a
add vscode extension link and badge | Some internal improvements (not completed yet)
...
Former-commit-id: 9bc94e90a2780ee81f8188509d98063fb3f2924b
2018-01-25 03:16:49 +02:00
kataras
9640f59961
app. SPA from router wrapper to a simple handler, works faster now. Iris' router respects wildcards with other paths as well (unique) for almost a half year now... so we don't need a whole wrapper for those things anymore, fixes https://github.com/kataras/iris/issues/807
...
Former-commit-id: 5bd7f24997bb025a01bb92960a1bf255f073a228
2017-11-10 16:15:47 +02:00