Commit Graph

242 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
d0a27d2c08
add a simple URLParamSlice
I would love to change the current URLParams() to URLParams(name string) []string to match the PostValues(name string) []string, error but that would be a big breaking changes to many servers... so stick with it.
2020-08-31 05:07:55 +03:00
Gerasimos (Makis) Maropoulos
00684f9d2e
add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested 2020-08-29 01:21:42 +03:00
Gerasimos (Makis) Maropoulos
6f9a453160
DBUG API: mark overlapped routes, hide the builtin functionality (read description)
also reference the correct file:line on <autogenerated> (by searching for the file,line of method inside the embedded fields themselves, as go automatically generates the methods foreach struct for their embedded fields)

fix UseGlobal may override the overlap feature
2020-08-28 16:02:14 +03:00
Gerasimos (Makis) Maropoulos
4035ed308c
fix https://github.com/kataras/iris/issues/1608 with the help of @AlbinoGeek for monitoring and together found the source of the problem 2020-08-28 06:21:26 +03:00
Gerasimos (Makis) Maropoulos
a6ec94e1a6
overlap routing: and mvc: allow setting status code from a dependency or a middleware 2020-08-28 04:11:56 +03:00
Gerasimos (Makis) Maropoulos
933534574a
fix #1603 2020-08-28 02:22:38 +03:00
Gerasimos (Makis) Maropoulos
39e3911d41
fix future issues like #1607 2020-08-27 07:23:56 +03:00
Gerasimos (Makis) Maropoulos
d44b69faed
Add Party.ResetRouterFilters
relative to: https://github.com/kataras/iris/issues/1604#issuecomment-680410131
2020-08-26 06:57:36 +03:00
Gerasimos (Makis) Maropoulos
1780d97d44
update the subdomain redirect example using the rewrite middleware 2020-08-26 00:07:07 +03:00
Gerasimos (Makis) Maropoulos
5e82fa5b89
mvc: struct field and method dependency logs on debug level. Read HISTORY.md
- remove Party.GetReporter

- Read HISTORY.md
2020-08-24 21:44:29 +03:00
Gerasimos (Makis) Maropoulos
ef5685bf7e
add Iris + Serverless example link 2020-08-23 17:55:29 +03:00
Gerasimos (Makis) Maropoulos
8e049d77c9
HandleHTTPError MVC Method as requested at #1595. Read HISTORY.md
example at: https://github.com/kataras/iris/tree/master/_examples/mvc/error-handler-http
2020-08-22 08:04:22 +03:00
Gerasimos (Makis) Maropoulos
27686d7c1c
... 2020-08-21 20:48:41 +03:00
Gerasimos (Makis) Maropoulos
12737c5b7f
implement a rewrite middleware 2020-08-19 22:40:17 +03:00
Gerasimos (Makis) Maropoulos
bdb94bbae2
request logger middleware: add graphical information about executed route's handlers 2020-08-19 01:24:36 +03:00
Gerasimos (Makis) Maropoulos
1192e6f787
fix https://github.com/kataras/iris/issues/1594 2020-08-18 05:42:48 +03:00
Gerasimos (Makis) Maropoulos
589c8c6242
new apps/switch (beta) 2020-08-17 21:53:17 +03:00
Gerasimos (Makis) Maropoulos
a61f743fa8
add internal subdomain redirect handler
TODO more things
2020-08-16 20:16:49 +03:00
Gerasimos (Makis) Maropoulos
177b05b674
see prev commit 2020-08-16 18:09:10 +03:00
Gerasimos (Makis) Maropoulos
227170fd33
see https://github.com/kataras/iris/issues/1591#issuecomment-674473247 2020-08-16 18:04:52 +03:00
Gerasimos (Makis) Maropoulos
889b7942d3
add two new examples and share the app's specific logger instance with sessions databases and APIBuilder 2020-08-16 07:07:36 +03:00
Gerasimos (Makis) Maropoulos
c22cb3a188
add godocs for https://github.com/kataras/iris/issues/1589 2020-08-15 12:24:51 +03:00
Gerasimos (Makis) Maropoulos
8340285e7d
fix #1588 2020-08-15 12:17:48 +03:00
Gerasimos (Makis) Maropoulos
d0d7679a98
minor 2020-08-14 14:18:41 +03:00
Gerasimos (Makis) Maropoulos
9f0872719f
fix SubdomainRedirect on loopbacks
fix: https://github.com/kataras/iris/issues/1584#issuecomment-674001454
2020-08-14 14:14:29 +03:00
Gerasimos (Makis) Maropoulos
dc35391ceb
fix https://github.com/kataras/iris/issues/1584 2020-08-14 13:04:48 +03:00
Gerasimos (Makis) Maropoulos
5f235993ee
fix Context.Proceed called on last handler in the chain
relative: https://github.com/kataras/iris/issues/1581#issuecomment-673958152
2020-08-14 11:53:38 +03:00
Gerasimos (Makis) Maropoulos
6fee09f11e
fix #1580 2020-08-14 03:19:59 +03:00
Gerasimos (Makis) Maropoulos
0761bc35ee
General Improvements (UseRouter per Party, fix AutoTLS). Read HISTORY.md
relative to: https://github.com/kataras/iris/issues/1577 and https://github.com/kataras/iris/issues/1578
2020-08-12 07:20:07 +03:00
Gerasimos (Makis) Maropoulos
da029d6f37
New 'Application.UseRouter(...Handler)'. Read HISTORY.md 2020-08-09 22:28:44 +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
5d480dc801
Ability to register a view engine per group of routes or for the current a chain of handlers
Example at: https://github.com/kataras/iris/tree/master/_examples/view/context-view-engine
2020-08-05 19:34:55 +03:00
Gerasimos (Makis) Maropoulos
802348cedd fix https://github.com/kataras/iris/issues/1569#issuecomment-663739177
Former-commit-id: c55f1023f4d93f6712c7fa4d299bcf1098872ecf
2020-07-25 09:23:34 +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
c8ed26ee51 fix #1557
Former-commit-id: 55589069c8ed458183d28f32870fdf8f233629c6
2020-07-11 16:14:31 +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
38b0a796bd fix #1552
Former-commit-id: 953df27468e3905e557bb1f6a97ea431cb60f6a6
2020-07-06 19:08:02 +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