Commit Graph

1154 Commits

Author SHA1 Message Date
Gerasimos Maropoulos
fc0f27c4fc Do not create the global configuration in homedir by-default, as, correctly, requested on chat. Use iris.WithGlobalConfiguration with a pre-defined iris.yml file on your home directory, existing users will not have any issues, new one will have to create the file before
Former-commit-id: 033f7e96693b13f87b44b445ed166328fea6e0a0
2018-03-27 09:59:29 +03:00
Gerasimos Maropoulos
66d367b255 Update to version 10.5.0 | Read HISTORY.md for more
Former-commit-id: 41b1947aafa258d342bbf9d22baeecc946d198a4
2018-03-24 10:39:44 +02:00
Gerasimos (Makis) Maropoulos
2955edd81c Merge pull request #939 from StefanPahlplatz/patch-1
Fixed a typo

Former-commit-id: 5208cc634d069f373d282663a001937bb657390b
2018-03-24 03:10:49 +02:00
Stefan Pahlplatz
5aba0d0ff4 Fixed a typo
Former-commit-id: 4d3a281839fe2dc72d1cb67af0f6d3b04782968e
2018-03-22 12:02:22 +01:00
Gerasimos (Makis) Maropoulos
1a2af3ccac Update Chinese translation, merge pull request #936 from @Zeno-Code
Former-commit-id: 12fac905886481825ebdc97763546ee2ce531d85
2018-03-21 09:01:13 +02:00
Gerasimos (Makis) Maropoulos
9bd70d7c91 Merge pull request #938 from kataras/dev
misspell fixes

Former-commit-id: 3becabe965f0e92f41ae65a63e2d8f8e7bc9937b
2018-03-21 09:00:23 +02:00
Gerasimos Maropoulos
ff41c672ce misspell fixes
Former-commit-id: 7efa2d8641d8fc324231989cbfcc0905f1d90009
2018-03-21 08:59:37 +02:00
Zeno-Code
194b7c8ad9 Update HISTORY_ZH.md
Former-commit-id: 3b2e3d46dd35192234408edbf1617be6cb234ce6
2018-03-19 10:19:41 +08:00
Zeno-Code
8973565acb Merge pull request #11 from kataras/master
.

Former-commit-id: 5c2fc434d0dfb1371753db2b229998a397761990
2018-03-19 09:58:25 +08:00
Gerasimos (Makis) Maropoulos
7b2409fc7f New middlewares for various client cache methods that can speed your pages even more
Former-commit-id: 243a625144fc52255ed21474055f52dd5b33d257
2018-03-18 14:33:15 +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 (Makis) Maropoulos
fae3906587 Add some useful middlewares for browser caching
By @speedwheel via PR #934

Former-commit-id: 653815c2ef09039ee2a867ec1d95d984997a179a
2018-03-17 17:12:48 +02:00
speedwheel
46453ff522 fix import path order, guidelines of iris
Former-commit-id: 4c938dd13691b8f753a7d1b00a6fa2da56ad4e99
2018-03-17 06:19:49 +02:00
speedwheel
50164f082c new handlers for client (i.e browser) catching: cache.NoCache and cache.StaticCache including tests
Former-commit-id: 18975297c8b96c7f9d5ff757f92051f6b10933c1
2018-03-17 06:15:13 +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
7689e48132 Merge branch 'master' of https://github.com/kataras/iris
Former-commit-id: 901fb7a50f0d60962f5c7a317e41d65d8a0ee993
2018-03-16 12:39:36 +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 (Makis) Maropoulos
75601979c5 Merge pull request #931 from hyhkjiy/patch-1
Update gzip_response_writer.go

Former-commit-id: 35d47ed1354ec72959c168563d43cdd63a269fdc
2018-03-16 12:33:24 +02:00
Gerasimos Maropoulos
87036fdb6c add the new StaticEmbeddedGzip on the Party interface, it works within multiple levels like the StaticEmbedded, so why not
Former-commit-id: f62c863344a06277935730449d5466fecbc64993
2018-03-15 23:15:10 +02:00
Gerasimos Maropoulos
89022c7051 add some tests for the content type for the embedding files and gziped embedded files
Former-commit-id: b7fe470f33efcdf70df3e41ad880bbd4704cbb4a
2018-03-15 23:09:07 +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
hyhkjiy
0df0bb8052 Update gzip_response_writer.go
The Context.SendFile function Send file size more than 65536 byte with bug.

Former-commit-id: 5ad4c80eb20a7e6663fc460ec68e238dd45a918a
2018-03-14 19:46:55 +08: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
1e0c707366 Update Chinese Translation for version 10.3.0 via PR #928
Former-commit-id: d0edcc7dbcd112e22d963ea3b011c26674c57269
2018-03-14 06:30:57 +02:00
Zeno-Code
fbc811ad76 Update
Former-commit-id: 1dec0ab6da6e6d6ce9c11d36dafdf1d2f0aca798
2018-03-14 01:31:45 +08:00
Zeno-Code
06f75795bb Merge pull request #10 from kataras/master
Update

Former-commit-id: 6c5ffc3c8f7a44929db41a7a7457a77cd1029f2d
2018-03-14 00:55:51 +08:00
Gerasimos Maropoulos
5e5e91e4bb fix https://github.com/kataras/iris/issues/927
Former-commit-id: 7de62d36b7927d790f5af0c1e64713e0a78d12c5
2018-03-13 15:57:52 +02:00
Gerasimos Maropoulos
05b1e80e7f add protobuf on sessions/sessiondb/badger/vendor and columnize at middleware/logger/vendor
Former-commit-id: 7fe5ce84ef9e9c5f46269ebde5dd0d8185ee74a6
2018-03-13 00:02:45 +02:00
Gerasimos Maropoulos
d61d509bc8 update Gopkg.lock and Gopkg.toml
Former-commit-id: 6f00ef74a8b96f0ecb5d1b1587a804f43e2d69c5
2018-03-12 23:43:23 +02:00
Gerasimos Maropoulos
ee37850acd Merge branch 'dev'
Former-commit-id: a54a49c60a465e76ea6a2a707f7a54b09fdc0ca5
2018-03-12 23:39:42 +02:00
Gerasimos Maropoulos
d07391df78 Update the golang.org/x/sys vendor
Former-commit-id: 85d90c202236cb32b9a4feb4436ecf0dc713a633
2018-03-12 23:36:53 +02:00
Gerasimos (Makis) Maropoulos
4985d5a58b Merge pull request #925 from mcsakoff/websocket
Handle non-WS connections in WS handler with no panic

Former-commit-id: fcfdea392d93668f66a4af7a4d93ea9fd7d7c6ef
2018-03-10 19:52:41 +02:00
Alexey McSakoff
6c9e3c69ff Handle non-WS connections in WS handler with no panic
Former-commit-id: f56665ee444bd16258edf6a34606efc132eced5a
2018-03-10 19:31:40 +04:00
Gerasimos Maropoulos
c746d631d7 Update to version 10.3.0 | Read HISTORY.md
Former-commit-id: 10a0663cdf518dcf35290f18dfdc1eb69ea4a127
2018-03-10 15:13:07 +02:00
Gerasimos Maropoulos
4993918a12 remove the complicated fallback handlers, that didn't work and not approve the coblexity addition of the https://github.com/kataras/iris/pull/919, RouteExists accepts first argument the Context, add new AllowMethods per party and fix cors by 048e2be034 https://github.com/kataras/iris/issues/922, rel: https://github.com/iris-contrib/middleware/issues/36, https://github.com/iris-contrib/middleware/issues/34, https://github.com/iris-contrib/middleware/issues/32, https://github.com/iris-contrib/middleware/issues/30, https://github.com/kataras/iris/pull/909
Former-commit-id: 5576c44b64014fb00dd79e618b815b5f52b705e4
2018-03-10 14:22:56 +02:00
Gerasimos Maropoulos
1165b4527a fix https://github.com/kataras/iris/issues/921
Former-commit-id: f8560514a7b48f83121ddd21d74b4016af4e1b67
2018-03-08 20:55:58 +02:00
Gerasimos Maropoulos
83c4b7f52d add examples for read using custom decoder per type, read using custom decoder via iris#UnmarshalerFunc and to complete it add an example for the context#ReadXML.
Former-commit-id: 536b1780f12d0b9d9ce9aa976a0f95f18634ec2d
2018-03-08 05:21:16 +02:00
Gerasimos Maropoulos
1a4803307d Add one more example for custom router macro functions, relative to https://github.com/kataras/iris/issues/918
Former-commit-id: 457c1a94dc8d93e614e9da70e1ec2482fe0c5765
2018-03-05 20:09:30 +02:00
Gerasimos Maropoulos
5c2edeebec add go 1.10 in travis (Tip for other project managers: note the quotes, otherwise travis will act like go1.1 instead of go1.10)
Former-commit-id: cf687301a86aab2ae8e8b198f4425234687ef4e3
2018-02-25 12:59:09 +02:00
Gerasimos (Makis) Maropoulos
bcd9a1bb17 Add wrappers for Pongo's AsValue() and AsSaveValue() by @neenar via PR: https://github.com/kataras/iris/pull/913
Former-commit-id: 06c4e4d849e994a8493308a8c33bd9f5e2c0eecc
2018-02-25 12:15:47 +02:00
Gerasimos Maropoulos
b20933e0bb upgrade go-bindata link to the most maintainable one
Former-commit-id: 58d5253b3332acef480d36f0cf716f2ad6b1c09e
2018-02-25 12:14:49 +02:00
Alexey McSakoff
a1aa1b66c6 Add wrappers for Pongo's AsValue() and AsSaveValue()
Former-commit-id: 642c8709b7566dbe5827759155167ec4d82212e3
2018-02-25 12:28:17 +04:00
Gerasimos (Makis) Maropoulos
d7beb9a752 Add a missing call for fallbackHandler in _examples/routing/fallback-handlers/main.go by @ZaniaDeveloper via PR: #911
Former-commit-id: 94ae5849e16538a4bc7f906c52ed7603c7ae01f6
2018-02-23 15:20:53 +02:00
ZaniaDevelopper
abb10e9cbf Add a missing call for fallbackHandler
Former-commit-id: a1ce94b39d326657cdbce34276477c34752f0000
2018-02-23 09:24:35 +03:00
Gerasimos Maropoulos
a1232c9a9a _examples: replace DELETE string with iris.MethodDelete, for important changes see: https://github.com/kataras/iris/pull/909 and 6de64d517e [formerly 35dd2ab80b69a5bea6f35f58e636bc11229d9921]
Former-commit-id: d0f5785aff289b8c140e4f253eb555135e79603d
2018-02-23 04:25:12 +02:00
Gerasimos Maropoulos
6de64d517e New: context#NextOr && context#NextOrNotFound and some performance improvements on the awesome https://github.com/kataras/iris/pull/909 pushed a while ago
Former-commit-id: 35dd2ab80b69a5bea6f35f58e636bc11229d9921
2018-02-23 04:06:05 +02:00
Gerasimos (Makis) Maropoulos
eeac8ccdbd NEW Feature: Fallback handlers by @ZaniaDeveloper via PR: #909
Relative: https://github.com/kataras/iris/issues/884 and https://github.com/iris-contrib/middleware/issues/32
Former-commit-id: 5d79d9fbb5792521ee707ba513cb40681438ea6f
2018-02-23 02:24:14 +02:00
Gerasimos (Makis) Maropoulos
9bfa0fb52b fix a typo by @aermolaev via PR: #910
Former-commit-id: 4cf236d03fa8e120b650367aaab15c9bac4ce9d3
2018-02-23 02:16:25 +02:00
Gerasimos Maropoulos
86bb29ed14 remove unnecessary reflection usage on context#UnmarshalBody
Former-commit-id: a7dc78027c5647b3b21098808f360a536d8b9438
2018-02-23 02:15:38 +02:00
Alexander Ermolaev
8517904bcf fix a typo
Former-commit-id: 8b8e3eaff43019fc0503708e8bc33a2fdb6f1496
2018-02-22 18:25:56 +03:00