Gerasimos (Makis) Maropoulos
d0add202d9
minor
2020-10-18 19:38:23 +03:00
Gerasimos (Makis) Maropoulos
7ab51805ba
add an example for #1659
2020-10-18 19:37:33 +03:00
Gerasimos (Makis) Maropoulos
0d73b63b28
jwt: add the (last) helper: VerifyRefreshToken
2020-10-18 17:15:29 +03:00
Gerasimos (Makis) Maropoulos
09923183e8
add an extra security layer on JWT and able to separate access from refresh tokens without any end-developer action on the claims payload (e.g. set a different issuer)
2020-10-18 14:42:19 +03:00
Gerasimos (Makis) Maropoulos
1864f99145
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
...
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and add a simple example on site docs
2020-10-17 06:40:17 +03:00
Gerasimos (Makis) Maropoulos
8e51a296b9
Add Context.SetUser and Context.User methods
...
relative to: https://github.com/iris-contrib/middleware/issues/63
2020-10-12 15:52:53 +03:00
Gerasimos (Makis) Maropoulos
dfe27567ae
Add an example for urlpath template func for Django engine
...
relative to #1656
2020-10-12 13:08:42 +03:00
Gerasimos (Makis) Maropoulos
f6905a3f79
New Context.SetLogoutFunc/Logout and SetFunc/CallFunc methods
...
Read HISTORY.md
2020-10-12 02:07:04 +03:00
Gerasimos (Makis) Maropoulos
2d62d49fdb
fix redis sessions database prefix
2020-10-10 13:18:33 +03:00
Gerasimos (Makis) Maropoulos
0069bccd75
add example for https://github.com/kataras/iris/issues/1653
2020-10-04 19:04:10 +03:00
Gerasimos (Makis) Maropoulos
cc7e3860f2
fix #1610 #1651 - read HISTORY.md
2020-10-04 16:50:21 +03:00
Gerasimos (Makis) Maropoulos
552539bed1
Add View Engine Benchmarks: https://github.com/kataras/iris/tree/master/_benchmarks/view
2020-10-01 16:06:16 +03:00
Gerasimos (Makis) Maropoulos
4065819688
New: i18n pluralization and variables support and more...
...
fixes : #1649 , #1648 , #1641 , #1650
relative to: #1597
2020-09-29 19:19:19 +03:00
Gerasimos (Makis) Maropoulos
c2f9e57b84
Merge pull request #1636 from kataras/pongo2-v4
...
Update pongo2 to version 4
2020-09-20 01:10:30 +03:00
Gerasimos (Makis) Maropoulos
31c616c886
update pongo2 to version 4
2020-09-20 01:09:16 +03:00
Gerasimos (Makis) Maropoulos
a04a6b5011
add accesslog+proxy example
2020-09-19 17:47:44 +03:00
Gerasimos (Makis) Maropoulos
d1f32e723a
minor improvements to the kafka-api example
2020-09-18 13:58:31 +03:00
Gerasimos (Makis) Maropoulos
7fa2666f58
add accesslog+MVC example
2020-09-17 18:01:35 +03:00
Gerasimos (Makis) Maropoulos
ab7ee4a331
update pongo2 to version 4
2020-09-16 17:11:46 +03:00
Gerasimos (Makis) Maropoulos
85b5453ae1
add auth/jwt/refresh-token example as requested at #1635
2020-09-16 13:57:11 +03:00
Gerasimos (Makis) Maropoulos
64f95a59b4
fix ip_test (see prev commit)
2020-09-16 13:21:34 +03:00
Gerasimos (Makis) Maropoulos
373b8993ad
add viper configuration example and minor improvements - read HISTORY.md
2020-09-16 12:59:51 +03:00
Gerasimos (Makis) Maropoulos
3baee7db34
add Party.SetRoutesNoLog and mvc.Application.SetControllersNoLog as requested at #1630
2020-09-15 00:23:09 +03:00
Gerasimos (Makis) Maropoulos
0f7cf7f35c
example: i18n: nested .ini template key-values
2020-09-14 22:00:20 +03:00
Gerasimos (Makis) Maropoulos
44d5ebdc9c
Modify the SPA example for iris.PrefixDir
2020-09-14 18:36:04 +03:00
Gerasimos (Makis) Maropoulos
701713efdb
accesslog: add Truncate method as requested at #1631
2020-09-14 12:15:08 +03:00
Gerasimos (Makis) Maropoulos
54a095c23f
Add example for custom fast Accesslog Formatter
2020-09-14 02:35:01 +03:00
Gerasimos (Makis) Maropoulos
a917ef68fc
v12.2.0-alpha
2020-09-13 19:18:57 +03:00
Gerasimos (Makis) Maropoulos
7431fcc9cf
more tiny improvements
2020-09-13 14:28:05 +03:00
Gerasimos (Makis) Maropoulos
4845b77177
accesslog: improvements and new features
...
relative to: #1601 and #1624
2020-09-13 02:56:22 +03:00
Gerasimos (Makis) Maropoulos
7d5789c3de
add an accesslog simple example
2020-09-12 13:45:00 +03:00
Gerasimos (Makis) Maropoulos
2b342a5122
accesslog: add CSV format
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-12 12:34:59 +03:00
Gerasimos (Makis) Maropoulos
a30bbb61f7
accesslog: export the delimeter used on default formatter and improve its performance
...
relative to: #1601 and #1622
2020-09-11 23:22:18 +03:00
Gerasimos (Makis) Maropoulos
e63d1041d2
accesslog: add IP in builtin fields, change the format a bit. Default func: remove compression middleware, force-set debug log level, replace the old request logger with the accesslog one, use request id middlewareand keep recovery
2020-09-11 09:38:55 +03:00
Gerasimos (Makis) Maropoulos
0f5ec75d54
accesslog: Timestamp to unix milliseconds instead of seconds
...
relative to https://github.com/kataras/iris/issues/1601#issuecomment-690868305
2020-09-11 07:51:24 +03:00
Gerasimos (Makis) Maropoulos
16a794a245
acesslog new example: custom fields and custom template
2020-09-10 21:40:30 +03:00
Gerasimos (Makis) Maropoulos
2bb04823b0
recover, accesslog middlewares: give more information to the stored error, accesslog: make use of that information and introduce panic log levels
...
relative to: https://github.com/kataras/iris/issues/1601#issuecomment-690541789
2020-09-10 21:03:34 +03:00
Gerasimos (Makis) Maropoulos
facc94b725
accesslog: improvements
2020-09-10 19:41:30 +03:00
Gerasimos (Makis) Maropoulos
bfb7b19096
More localization template examples for https://github.com/kataras/iris/issues/1597#issuecomment-690186907
2020-09-10 17:52:25 +03:00
Gerasimos (Makis) Maropoulos
ae67987f55
accesslog: log error bodies and communicate with the recover middleware
2020-09-10 14:47:14 +03:00
Gerasimos (Makis) Maropoulos
cf0338d342
fix https://github.com/kataras/iris/issues/1621
2020-09-10 11:24:23 +03:00
Gerasimos (Makis) Maropoulos
333be428c4
use jet v5.0.2 (no breaking changes)
...
relative to: https://github.com/kataras/iris/pull/1616
2020-09-10 10:12:06 +03:00
Gerasimos (Makis) Maropoulos
59b8ddf5be
i18n: add the ability to register template funcs per locale
2020-09-10 06:22:53 +03:00
Gerasimos (Makis) Maropoulos
a1f7f57922
i18n: add 'tr' template function inside the translation files themselves
2020-09-10 05:57:49 +03:00
Gerasimos (Makis) Maropoulos
777ef0cd3e
i18n: expose the LoaderConfig from the main i18n instance and add an example
...
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
2020-09-10 05:17:03 +03:00
Gerasimos (Makis) Maropoulos
b77227a0f9
accesslog: NEW log broker and many more features
...
some fixes about context clone, fix response recorder concurrent access, fix reload views with only ParseTemplate and more
2020-09-09 14:43:26 +03:00
Gerasimos (Makis) Maropoulos
fb7627256a
minor
2020-09-09 08:39:23 +03:00
Gerasimos (Makis) Maropoulos
d17a888dc1
example: minor
2020-09-09 08:37:26 +03:00
Gerasimos (Makis) Maropoulos
61a9eff43e
accesslog middleware: more examples and usecase, e.g. log latency per handler and sessions values or authentication
...
relative to: #1601
2020-09-09 08:21:10 +03:00
Gerasimos (Makis) Maropoulos
d6867e1f9e
accesslog middleware: add total bytes received and sent
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-08 13:44:50 +03:00
Gerasimos (Makis) Maropoulos
a4996b90c8
Add a 'ParseTemplate' method on view engines to manually parse and add a template from a text
...
examples at: https://github.com/kataras/iris/tree/master/_examples/view/parse-template
relative to: https://github.com/kataras/iris/issues/1617
2020-09-08 07:55:33 +03:00
Gerasimos (Makis) Maropoulos
64038b09e3
add a ParseTemplate to the HTML view engine.
...
relative to: #1617
Wait for an answer from the issuer and if that's the expected behavior, do the same for the rest of the view engines
2020-09-08 01:58:02 +03:00
Gerasimos (Makis) Maropoulos
dac834cf11
new accesslog middleware: require the writer inside its constructor so we can 'detect' if we must force-lock a writer
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 18:04:35 +03:00
Gerasimos (Makis) Maropoulos
e96a009d3f
accesslog: LockWriter (to lock unprotected writers) and Clock (for testing)
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 16:31:43 +03:00
Gerasimos (Makis) Maropoulos
b063fbf3c8
minor (see previous commit)
2020-09-07 11:53:16 +03:00
Gerasimos (Makis) Maropoulos
07806ba270
more improvements to the new accesslog middleware: ability to add custom fields and change the order on the printable result
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 11:35:27 +03:00
Gerasimos (Makis) Maropoulos
4dca8f6088
improvements on the new accesslog middleware
...
relative to: https://github.com/kataras/iris/issues/1601
2020-09-07 06:12:45 +03:00
Gerasimos (Makis) Maropoulos
0ef064cc55
update golog dependency
2020-09-07 01:08:19 +03:00
Gerasimos (Makis) Maropoulos
618afd97f7
minor
2020-09-06 13:13:48 +03:00
Gerasimos (Makis) Maropoulos
26f515775b
examples: use the new golog.JSON, comment the manual way for general purpose knowedge that can be used to create a handler for any other custom format
2020-09-06 13:12:54 +03:00
Gerasimos (Makis) Maropoulos
0be856e54c
add accesslog middleware (rel: #1601 )
2020-09-06 10:38:48 +03:00
Gerasimos (Makis) Maropoulos
bf9f7617e2
examples: update go.mod (see previous commit)
2020-09-05 08:56:01 +03:00
Gerasimos (Makis) Maropoulos
e1f25eb098
Full support of the http.FileSystem on all view engines as requested at #1575
...
Also, the HandleDir accepts both string and http.FileSystem (interface{}) (like the view's fs)
2020-09-05 08:34:09 +03:00
Gerasimos (Makis) Maropoulos
d617a77209
add example for: #1614
2020-09-03 13:39:42 +03:00
Gerasimos (Makis) Maropoulos
8dc4fbdbbf
README
2020-09-02 13:44:19 +03:00
Gerasimos (Makis) Maropoulos
1a163eb78d
minor: README
2020-09-01 17:58:07 +03:00
Gerasimos (Makis) Maropoulos
fec6783a22
examples: write-rest: json: usage of the Secure, ASCII and UnescapeHTML fields
2020-09-01 13:28:21 +03:00
Gerasimos (Makis) Maropoulos
c7157f1c92
add bind checkboxes example
2020-09-01 11:39:57 +03:00
Gerasimos (Makis) Maropoulos
dbeb7bfb73
add Context.ReadHeaders
2020-08-31 21:28:13 +03:00
Gerasimos (Makis) Maropoulos
29084d062e
examples: minor. See prev commit
2020-08-31 20:46:25 +03:00
Gerasimos (Makis) Maropoulos
477f5e6f9b
add Context.ReadParams method
2020-08-31 20:30:01 +03:00
Gerasimos (Makis) Maropoulos
7f7d8df9c0
add mvc.Err builtin dependency to map any context/mvc response's.Err field on methods like HandleHTTPError
...
relative to: https://github.com/kataras/iris/issues/1606
2020-08-31 15:26:30 +03:00
Gerasimos (Makis) Maropoulos
f20e7f1ecc
examples: minor
2020-08-31 09:48:37 +03:00
Gerasimos (Makis) Maropoulos
8d99b46801
minor improvements
2020-08-31 09:40:27 +03:00
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
5f0a43cbc0
minor: sqlx example: indentation
2020-08-30 18:25:34 +03:00
Gerasimos (Makis) Maropoulos
b9f38be9ea
add sqlx example
2020-08-30 18:24:24 +03:00
Gerasimos (Makis) Maropoulos
77ce225c2f
minor: update xorm example based on chat comments (they moved repository)
2020-08-30 17:59:14 +03:00
Gerasimos (Makis) Maropoulos
f93c8b13bc
minor: oauth2 example updates
2020-08-30 17:51:53 +03:00
Gerasimos (Makis) Maropoulos
8b28ae14f8
minor: godoc
2020-08-30 17:18:04 +03:00
Gerasimos (Makis) Maropoulos
6ee69ffd1c
minor: fix Context.ViewData ignored when nil is passed as view data on Context.View method
2020-08-30 16:14:32 +03:00
Gerasimos (Makis) Maropoulos
600eb645df
minor: examples
2020-08-30 15:26:50 +03:00
Gerasimos (Makis) Maropoulos
a3279b8fa9
add a note on rewrite middleware for local URL modifications
2020-08-29 18:15:22 +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
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
9c56ed6261
examples: minor: update go mod master version
2020-08-26 19:37:14 +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
a018ba9b0a
add example for #1601
2020-08-22 03:21:44 +03:00
Gerasimos (Makis) Maropoulos
e41e861c4c
update examples go mods
2020-08-21 20:53:45 +03:00
Gerasimos (Makis) Maropoulos
27686d7c1c
...
2020-08-21 20:48:41 +03:00
Gerasimos (Makis) Maropoulos
95c3c2a951
rewrite middleware: add a feature which supports users.json to users?format=json local route redirection
2020-08-21 18:09:21 +03:00
Gerasimos (Makis) Maropoulos
cb80e43ff0
rewrite middleware: add subdomain redirect example
2020-08-20 16:34:19 +03:00
Gerasimos (Makis) Maropoulos
ffae9c0d09
rewrite middleware: add PrimarySubdomain and simplify its usage example
2020-08-20 03:05:47 +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
4228dd8ea4
add some MVC error handle examples
2020-08-18 23:14:11 +03:00
Gerasimos (Makis) Maropoulos
35ab1de212
add TraceRoute feature on request logger
2020-08-18 19:33:07 +03:00
Gerasimos (Makis) Maropoulos
a491cdf7ef
implement #1593 - Read HISTORY.md
...
updated example: https://github.com/kataras/iris/blob/master/_examples/i18n/main.go#L28-L50
2020-08-18 08:05:51 +03:00
Gerasimos (Makis) Maropoulos
5481b9a6c1
apps.Switch(apps.Hosts...) example
2020-08-18 04:17:53 +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
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
ef7d365e81
add iris.Minify middleware and Context.OnCloseErr/OnConnectionCloseErr
2020-08-15 17:21:57 +03:00
Gerasimos (Makis) Maropoulos
8340285e7d
fix #1588
2020-08-15 12:17:48 +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
fdb76cfde2
travis: remove master go version (sometimes it's buggy and it's nromal)
2020-08-12 23:50:17 +03:00
Gerasimos (Makis) Maropoulos
296a469ce4
examples update iris dependency
2020-08-12 18:23:00 +03:00
Gerasimos (Makis) Maropoulos
22e25c3586
minor
2020-08-12 08:00:42 +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
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
b363492cca
add 'iris.Blocks' template engine
...
read more about its features at: https://github.com/kataras/blocks
2020-08-05 06:46:45 +03:00
Gerasimos (Makis) Maropoulos
6844be57ea
add 'iris.Ace' template engine: _examples/view/template_ace_0
2020-08-03 05:46:04 +03:00
Gerasimos (Makis) Maropoulos
dfa08041a1
add a raw gorilla websocket example
2020-08-02 21:22:42 +03:00
Gerasimos (Makis) Maropoulos
acf058b006
add database/orm/reform example
2020-08-01 03:46:51 +03:00
Gerasimos (Makis) Maropoulos
eacbcea653
fix: ctx.Record and then iris.Compression flow
2020-07-30 20:13:59 +03:00
Gerasimos (Makis) Maropoulos
ad5e5d82ce
correctly handle recorded compressed response
...
see https://github.com/kataras/iris/issues/1569#issuecomment-664003098
2020-07-26 20:28:31 +03:00
Gerasimos (Makis) Maropoulos
22a89c12cb
Add Configuration.RemoteAddrHeadersForce as requested at #1567 and change RemoteAddrHeaders from map to string slice
...
Read HISTORY.md entry
2020-07-26 14:37:30 +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
beb67dc495
testing: add a 'Do' helper that accepts http.ResponseWriter and http.Request for integration with the standard net/http/httptest package for easier transition from net/http and other frameworks into Iris
...
Former-commit-id: 8ec6e3468affc28ce34c9bef6795b444fffa08c5
2020-07-20 05:44:12 +03:00
Gerasimos (Makis) Maropoulos
302597faac
example: sessions: scale out using redis
...
Former-commit-id: a811648e0bdf83c289656426f8ba67d785b7d5cc
2020-07-19 12:55:48 +03:00
Gerasimos (Makis) Maropoulos
3faaf954bb
doc: minor
...
Former-commit-id: 649e2d673a834625d5f3e8703533ad1db2553aec
2020-07-19 10:26:59 +03:00
Gerasimos (Makis) Maropoulos
a1991a0830
README: update benchmarks.
...
minor performance boost by making RequestParameter Set and Get methods more direct to the underline Memstore's kv
Former-commit-id: 4fae45b5bd23804e88aac1f7c66055dd81efc9c9
2020-07-18 14:35:27 +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
dab03102f3
fix #1563 due to latest DI source changes
...
Former-commit-id: 3e3f209ebc60edf6a8702979f56e1f0ed73e4189
2020-07-17 12:59:39 +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
38eec57e46
add HashGenerator on requestid middleware
...
Former-commit-id: 8f59a46a3fecc538d6d3e624fc36f2c314c20bb6
2020-07-15 11:18:40 +03:00
Josef Fröhle
eca1cf315e
fix #1559 - remove not need colon
...
fix #1559
Former-commit-id: 868c18f6cab6207a3fd433354490746e231c5b51
2020-07-12 14:15:59 +02:00
Gerasimos (Makis) Maropoulos
c8ed26ee51
fix #1557
...
Former-commit-id: 55589069c8ed458183d28f32870fdf8f233629c6
2020-07-11 16:14:31 +03:00
Gerasimos (Makis) Maropoulos
3574816e1d
add doc for #1556
...
Former-commit-id: 6e0708f87f6ee9c6efd92f7677595feb8910988a
2020-07-11 01:01:28 +03:00
Gerasimos (Makis) Maropoulos
54bef51eb9
minor: examples: use the master version on go example-modules
...
Former-commit-id: 9e86a50f53e479843f20ab0025baf56a85902bcf
2020-07-10 23:37:01 +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
87e08dbddc
Update jet parser to v4.0.0 as requested at: #1551
...
Former-commit-id: 1ad89532d11716af7a49fe9aafca59e943d98ebe
2020-07-06 21:40:40 +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
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
bdfe8de66d
file-server example: add upload using javascript button
...
Former-commit-id: caaec95388e691c2db27a55e649c758f93ab537c
2020-07-05 15:12:19 +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
8c3e43df7f
minor
...
Former-commit-id: 4c71a275f3e10dd0ce77bf5723c370be765663ab
2020-07-03 13:48:34 +03:00
Gerasimos (Makis) Maropoulos
beb3f730a0
add an example (and a test case) for same route path pattern but different macro function's input argument
...
Former-commit-id: f20ac838a08473b6b8114b407cb0dcde7765f634
2020-07-02 20:56:22 +03:00
Gerasimos (Makis) Maropoulos
85fc0f5dab
add Context.Clone and change the input argument of Context.OnClose and OnCloseConnection ( the un-released Defer has been removed, OnClose can do its job)
...
Former-commit-id: 7b606e285f4b9de24338ea96d482cf1f7c4907a3
2020-07-02 20:31:34 +03:00
Gerasimos (Makis) Maropoulos
2d9485326b
update stream example
...
Former-commit-id: a62ee01e0811f2595e292b3d50b844d999ccb4d3
2020-07-01 14:43:24 +03:00
Gerasimos (Makis) Maropoulos
134e2531bf
use Request().Context().Done() channel instead of the ResponseWriter().CloseNotify() one
...
Former-commit-id: e380a3624c03faada74c9efc24266679c3ff5e2b
2020-06-29 21:05:12 +03:00
Gerasimos (Makis) Maropoulos
ed5172731c
minor
...
Former-commit-id: 983161656b264289fb664ca4237bf2a9fccbc5da
2020-06-28 23:08:52 +03:00
Gerasimos (Makis) Maropoulos
871b4ef7fc
add Context.ReadJSONProtobuf method
...
Former-commit-id: 9c7f268c0d7be7e405ea97a5ac12257beba3a4f3
2020-06-28 23:05:07 +03:00
Gerasimos (Makis) Maropoulos
7f9e664b90
Option for Socket Sharding as requested at #1544
...
Former-commit-id: 0384baf593012377a94344d647ca41121294285a
2020-06-26 20:29:36 +03:00
Gerasimos (Makis) Maropoulos
836e641229
minor
...
Former-commit-id: 0bc9c92c519edda9e04be8481e16fd2fdcfc74c0
2020-06-25 13:04:36 +03:00
Gerasimos (Makis) Maropoulos
3fa022738b
README: add 'run in the browser' button
...
after the quick start details, so it is visible always
Former-commit-id: 0c13135a01c2b883aa4a9629a507aaf622d22ade
2020-06-24 00:13:31 +03:00
Gerasimos (Makis) Maropoulos
9922265454
add a README tutorial on the mvc/overview example
...
Former-commit-id: c563c4f1ffa98705829e14b189a6976c3a6aa898
2020-06-22 17:49:45 +03:00
Gerasimos (Makis) Maropoulos
29d98ac281
use the new protobuf package and other minor stuff
...
Former-commit-id: 29bf71e8a73d34b27c6f5fe3f12c4ea1cc2b84b2
2020-06-21 17:15:28 +03:00
Gerasimos (Makis) Maropoulos
d55bb34766
add a new 'overview' MVC example
...
Former-commit-id: f73cbf6010595c639f6c5b5119e2ec41bc9802a5
2020-06-21 00:12:07 +03:00
Gerasimos (Makis) Maropoulos
45c6bce15f
fix https://github.com/kataras/iris/issues/1542
...
Former-commit-id: 23f795a6b6b64745311d0630d8e630edc3f65244
2020-06-20 16:06:26 +03:00
Gerasimos (Makis) Maropoulos
04c8b79b1f
mvc: versioning: add 'Deprecated' feature as well
...
Former-commit-id: c233bae47aa765a7e1cd9ab7000acd14614a78ae
2020-06-20 11:11:44 +03:00
Gerasimos (Makis) Maropoulos
311b560717
new feature: versioned controllers
...
Former-commit-id: c797e23c78b1e74bbe9ba56673f3a98f17f5e2f7
2020-06-19 20:58:24 +03:00
Gerasimos (Makis) Maropoulos
3f98b39632
fix #1539
...
Former-commit-id: f2f277cd5cbe781ce596adc7840a1b1bc3b3bfc6
2020-06-19 05:54:21 +03:00
Gerasimos (Makis) Maropoulos
43502ed047
minor
...
Former-commit-id: 26b0b59ba54caac38d726d7fec562a5d6a0a76e3
2020-06-18 09:36:47 +03:00
Gerasimos (Makis) Maropoulos
6557dcf6c5
add route-handlers-execution-rules example
...
Former-commit-id: 95e3dfad33b98d20b761ea1d06dee8df91c3632d
2020-06-17 00:02:09 +03:00
Gerasimos (Makis) Maropoulos
5088a35cf5
update mvc/authenticated-controller example
...
rel to: https://github.com/kataras/iris/issues/1536 too
Former-commit-id: 0ed36644ee2d6c27d90450700d9241eb1ba93c17
2020-06-14 15:24:42 +03:00
Gerasimos (Makis) Maropoulos
9c739969f0
minor
...
Former-commit-id: ee1b625abe876cad8f0f2801c279da684b539fce
2020-06-14 09:25:19 +03:00
Gerasimos (Makis) Maropoulos
ed5964716b
implement #1536 with (SetRegisterRule(iris.RouteOverlap))
...
Former-commit-id: 2b5523ff3e2aab60dd83faa3c520b16a34916fbe
2020-06-14 08:09:42 +03:00
Gerasimos (Makis) Maropoulos
78a45163e3
add 'HostProxyHeaders' Configuration field
...
Former-commit-id: 067360d8db638d6f268d154b50fd872c465eaf1a
2020-06-11 18:52:35 +03:00
Gerasimos (Makis) Maropoulos
b4fcaab459
minor: try to extract from both referer and referrer header and url query parameter
...
Former-commit-id: c0ed0916f35ee9cffe0b267e34d5708c1d38082b
2020-06-11 01:58:35 +03:00
Gerasimos (Makis) Maropoulos
05ae7792df
add a rs/cors full example
...
Former-commit-id: 9655e04b91145f60e69096cbd662fef08a91f988
2020-06-09 22:12:11 +03:00
Gerasimos (Makis) Maropoulos
2c39828fe2
update kataras/golog and kataras/pio deps
...
Former-commit-id: 0f736f181b01771701b43cf4eef46b7086838fc7
2020-06-09 06:30:12 +03:00
Gerasimos (Makis) Maropoulos
2042637e41
add a rollbar example
...
Former-commit-id: 4cbe61a217f4863fe38e23848252126d864d9f5c
2020-06-09 02:58:17 +03:00
Gerasimos (Makis) Maropoulos
6d977dacd2
minor example fix (design change that was actually not pushed)
...
Former-commit-id: db253c191bad711b592d914d386675bf118e497c
2020-06-08 05:19:12 +03:00
Gerasimos (Makis) Maropoulos
7bb2223226
fix #1531 and introduce the 'Configuration.ResetOnFireErrorCode' (read HISTORY.md)
...
Former-commit-id: 84f1e894378a6dfd94e0bf057f4037e35aee0c4f
2020-06-08 05:16:55 +03:00
Gerasimos (Makis) Maropoulos
791fd7ac3d
minor: fix two broken example links
...
Former-commit-id: 4b102ed9e2b3e78b133d00f253eac86d66a77b6e
2020-06-07 15:47:02 +03:00
Gerasimos (Makis) Maropoulos
ed45c77be5
reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
...
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00
Gerasimos (Makis) Maropoulos
b2fddc7d68
jwt: add more helpers (DefaultRSA and DefaultHMAC)
...
Former-commit-id: fe06c0e0f4d7e121c678ffda7ac702ae865abd00
2020-05-31 17:57:30 +03:00
Gerasimos (Makis) Maropoulos
1079bb8f8b
add a new 'Context.GzipReader(bool) method and 'iris.GzipReader' middleware as requested at #1528
...
Former-commit-id: 7665545069bf1784d17a9db1e5f9f5f8df4b0c43
2020-05-28 19:29:14 +03:00
Gerasimos (Makis) Maropoulos
9e5672da25
add a new simple, builtin requestid middleware (makes use of the Context.SetID/GetID methods too)
...
Former-commit-id: d46bce7c1964adada01934aa95daf389c141defc
2020-05-28 16:20:58 +03:00
Gerasimos (Makis) Maropoulos
d556cfc39a
New builtin JWT middleware - this one supports encryption and ed25519
...
Former-commit-id: ca20d256b766e3e8717e91de7a3f3b5f213af0bc
2020-05-27 12:02:17 +03:00
Gerasimos (Makis) Maropoulos
c866709acc
add 'Context.Register/RemoveDependency' for registering dependencies for next handler in the chain from a common iris handler in serve-time
...
And also, add a Configuration.FireEmptyFormError if end-dev wants to receive an iris.ErrEmptyForm error on missing form data on 'Context.ReadForm/ReadBody'
Former-commit-id: a2713bec77375b2908f1f066a46be4f19e6b7a61
2020-05-19 09:28:27 +03:00
Gerasimos (Makis) Maropoulos
c0fd429a43
add example: dependency-injection/jwt
...
Former-commit-id: 77cdc7fa5f8a656857a3912910e037806adf70a9
2020-05-18 20:21:00 +03:00
Gerasimos (Makis) Maropoulos
3f1680a1d1
minor: #1516
...
Former-commit-id: 7b7d1a8becb5dc8e5a0dc54bb76d8ec723555e01
2020-05-18 19:13:46 +03:00
Gerasimos (Makis) Maropoulos
fb4dcf3134
add a test example for upload files as requested at: #1516
...
Former-commit-id: afb2d3e9c0902cce6c46d26b5b6cfc51551c2373
2020-05-18 19:12:02 +03:00
Gerasimos (Makis) Maropoulos
9b172fe4ab
add a note about sessions transcoder, rel: https://github.com/kataras/iris/issues/1517#issuecomment-630256473
...
Former-commit-id: 3ac995ea77b4629dc7b0d580b9e36d9e302b96ee
2020-05-18 18:43:39 +03:00
Gerasimos (Makis) Maropoulos
f3745cebbd
replace all common error responses with the new Context.StopWithError
...
Former-commit-id: 99b08a0b5564ef640456db12674cb37721f73ae3
2020-05-18 00:25:38 +03:00
Gerasimos (Makis) Maropoulos
47c3bad58d
set iris logger to the sessiondb/badger logs and update deps
...
Former-commit-id: 7578dec5752cc2bfa012440c24d59f41425812f8
2020-05-17 22:08:43 +03:00
Gerasimos (Makis) Maropoulos
1e20996330
add 'Configuration.PathIntelligence' and 'OnErrorCode' and 'OnAnyErrorCode' on APIContainer
...
Former-commit-id: bc3d0232106622063205f326bfa4ed3aa84179de
2020-05-17 08:10:07 +03:00
Gerasimos (Makis) Maropoulos
f482e13fb7
cors example
...
Former-commit-id: 31f25c5b3f0e02050bf9b120e903f56d1af35eeb
2020-05-16 03:22:45 +03:00
Gerasimos (Makis) Maropoulos
44eafe739b
misspell
...
Former-commit-id: 3be90d3099bfd9eabebd299dc08f9d6c1e6c2a29
2020-05-16 01:00:51 +03:00
Gerasimos (Makis) Maropoulos
c039730521
HTTP error handlers per Party (docs and details in progress)
...
Former-commit-id: 7092ebed556b56d9f1769b9b23f2340c2a3a18f7
2020-05-11 00:44:54 +03:00
Gerasimos (Makis) Maropoulos
221f026491
improvements on cookie options
...
Former-commit-id: f1d5cfc88a33077a9359eaa25b6a20265f5632b5
2020-05-10 02:17:28 +03:00
Gerasimos (Makis) Maropoulos
50b18c7515
enhanced cookie security and management
...
Former-commit-id: a97b0b33e87749a2e8c32e63269fcc60fa326ff3
2020-05-09 14:04:51 +03:00
Gerasimos (Makis) Maropoulos
b6a36bf28d
iris.TLS starts a secondary http redirection server now (like AutoTLS did) and add 'iris.TLSNoRedirect' to disable it (on both TLS and AutoTLS)
...
Former-commit-id: c7a535bf860a67604de3d09ade30599611e096f1
2020-05-08 21:13:12 +03:00
Gerasimos (Makis) Maropoulos
116503a9a5
add LogLevel/WithLogLevel in Configuration and run Configurators before Build state
...
Former-commit-id: d38f1fdae98d650692775f4cee06bd017aba959f
2020-05-08 03:55:54 +03:00
Gerasimos (Makis) Maropoulos
cd62ba3712
organise sessions examples
...
Former-commit-id: 682472d2cf4ebfc740687522fe5eef77b5bb1a72
2020-05-07 07:34:17 +03:00
Gerasimos (Makis) Maropoulos
b4365cee8d
sessions: add GobTranscoder and document the DefaultTranscoder package-level variable
...
Former-commit-id: 631d52bb6d0eb0dbe2e7416517ec019c5902ca71
2020-05-07 01:14:41 +03:00
Gerasimos (Makis) Maropoulos
ffc493a0b9
add authenticated-controller example - proof of concept
...
Former-commit-id: 7a15da2bd966f2a699337cd494af8b5d1877b11d
2020-05-06 04:45:12 +03:00
Gerasimos (Makis) Maropoulos
47075a82e9
fix an idiot typo
...
Former-commit-id: 3b493bedb38641c84e19c3b53d6bd0b273cc9d81
2020-05-05 22:07:56 +03:00
Gerasimos (Makis) Maropoulos
cc19f80049
update some examples
...
Former-commit-id: 2ed7c323dd379eb68d5ccb2044cd9cc772ce0b08
2020-05-05 22:03:01 +03:00
Gerasimos (Makis) Maropoulos
c10dd32ad7
new simple _examples/README.md, wiki should live only inside kataras/iris/wiki and the provided e-book
...
Former-commit-id: 350eafb0f70f8433e394e103ff93fa332ee00a05
2020-05-05 16:03:19 +03:00
Gerasimos (Makis) Maropoulos
f5e59c10e1
update go.mod deps
...
Former-commit-id: 91a0ab6a8cb35bf9143cee0447a6f72ca8a09333
2020-05-04 20:23:15 +03:00
Gerasimos (Makis) Maropoulos
20fcfb4110
add a 'Context.SetLanguage', similar to pp.I18n.ExtractFunc but it can be used per-handler
...
relative: https://github.com/kataras/iris/issues/1502#issuecomment-623553034
Former-commit-id: 7e2fadeb60149f43edbb9e220b0274ce1160881b
2020-05-04 19:13:06 +03:00
Gerasimos (Makis) Maropoulos
68fda360db
fmt
...
Signed-off-by: Gerasimos (Makis) Maropoulos <kataras2006@hotmail.com>
Former-commit-id: b30be0c10c507296cdf0a5a14bc8586af77ef604
2020-05-04 08:20:55 +03:00
Gerasimos (Makis) Maropoulos
67e47215cd
add permissions example
...
Former-commit-id: e786bdb991ab88bff275203f2c24ff72a9d0c522
2020-05-04 07:28:23 +03:00
Gerasimos (Makis) Maropoulos
2442915e08
update middleware list
...
Former-commit-id: f15d49cdfc6ef2368cec994a500c55a52efcc45e
2020-05-04 07:03:44 +03:00
Gerasimos (Makis) Maropoulos
37251c6b00
minor
...
Former-commit-id: 1747352d45933ad8c8623d8dcfdbcb176ecba50c
2020-05-04 06:45:14 +03:00
Gerasimos (Makis) Maropoulos
af66e7404f
rate: add 'SetIdentifier' and update example
...
the /x/time/rate package may be replaced with the iris-contrib:master/throttler's one -- we'll see
Former-commit-id: 9d12c7bd997ef4502dc0a7bb93bcb015d9204703
2020-05-03 03:53:43 +03:00
Gerasimos (Makis) Maropoulos
dbd6fcd2d7
add Context.SendFileWithRate, ServeFileWithRate and ServeContentWithRate
...
as requested at: https://github.com/kataras/iris/issues/1493
Former-commit-id: 7783fde04b4247056e6309e7ec1df27f027dc655
2020-05-02 17:46:17 +03:00
Gerasimos (Makis) Maropoulos
1e1d8a4855
minor (see prev commit)
...
Former-commit-id: 277b7b1517357d6baea98d771b592be2795201a3
2020-05-01 23:37:41 +03:00
Gerasimos (Makis) Maropoulos
3775189de8
New Rate Limit middleware (still WIP though)
...
Former-commit-id: 99e282e4d400c83a56a808212d812cd701e1bcd8
2020-05-01 23:33:04 +03:00
Gerasimos (Makis) Maropoulos
c3543528cf
fix: https://github.com/kataras/i18n/issues/1
...
Former-commit-id: 12b75f1e54ebf3d7f78a09b8d5594859a344422d
2020-04-30 16:16:43 +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
ac08f53ba0
minor
...
Former-commit-id: d4eebea0b5849c574e2ffd4b0bb36e4380b14111
2020-04-29 05:50:29 +03:00
Gerasimos (Makis) Maropoulos
2a4043a3c2
more route info improvements
...
Former-commit-id: ccbe95de0badb1bf448fcc443cecda60772716dc
2020-04-28 22:34:36 +03:00
Gerasimos (Makis) Maropoulos
ac7fac35be
update dependencies
...
Former-commit-id: 95cc5cf2628490e865d6414ab2d8661e803ea05f
2020-04-28 05:51:28 +03:00
Gerasimos (Makis) Maropoulos
c366c34644
add human-friendly middleware names on route debugging (see HISTORY.md#Next)
...
Former-commit-id: f7291c4a077c4d1573344c93ba8a153fede18795
2020-04-28 05:42:23 +03:00
Gerasimos (Makis) Maropoulos
b657c5e6af
don't fire ErrServerClosed on manually interrupt signals (CTRL/CMD+C)
...
Former-commit-id: 673c84dd13bb99c0926aa1b4a6b4eff9745403d8
2020-04-28 05:22:58 +03:00
Gerasimos (Makis) Maropoulos
27ca1c93f5
logging: several improvements
...
Former-commit-id: 12538c74a1aa55314c35ac3cf2665646b704851d
2020-04-28 01:58:56 +03:00
Gerasimos (Makis) Maropoulos
d1f18501e8
add a way to customize the handler names (recommended: before server execution) so route logging can be more human-friendly on handlers like standard iris middlewares, e.g. request logger
...
Former-commit-id: 039c233f2d4da0d52b1d6fc86b6d73be14b15608
2020-04-27 15:48:09 +03:00
Gerasimos (Makis) Maropoulos
f75ec4e67c
change the JS MIME to text/javascript instead of application/javascript as https://github.com/golang/go/issues/32351
...
Former-commit-id: 761be7901fff65ef0ca6e3ea4339ff59f569cf75
2020-04-27 12:28:30 +03:00
Gerasimos (Makis) Maropoulos
346ca2a219
route logging improvement: group by methods
...
Former-commit-id: ad884991433a244dc76bdad7314d98a5c204dac6
2020-04-26 17:51:27 +03:00
Gerasimos (Makis) Maropoulos
66e641513c
more route logging improvements, see the parent commit
...
Former-commit-id: 973167e3ca7b3463f79ec62ab8be6770727f1c2b
2020-04-26 17:23:38 +03:00
Gerasimos (Makis) Maropoulos
77a79cae58
improve route debug info, see HISTORY.md
...
Former-commit-id: ae245bae5fefa57c5f7663f7d1d661ec68ad366a
2020-04-26 06:21:20 +03:00
Gerasimos (Makis) Maropoulos
5d3c96947c
New: gRPC MVC features, new WithLowercaseRouting option and add some new context methods
...
read HISTORY.md
Former-commit-id: 30a16cceb11f754aa32923058abeda1e736350e7
2020-04-25 02:30:19 +03:00
Gerasimos (Makis) Maropoulos
0cf5d5a4a3
minor
...
Former-commit-id: 85c8b1e20da6e39485478025ef1b0f80ef953e4a
2020-04-21 09:27:28 +03:00
Gerasimos (Makis) Maropoulos
6c6de6b85d
improve remote addr parsing as requested at: https://github.com/kataras/iris/issues/1453
...
Former-commit-id: e5fde988eda9bf582b04285a1c77ba123910a699
2020-04-20 10:43:45 +03:00
Gerasimos (Makis) Maropoulos
c5392ede6a
remove the 'typescript' package entirely in favor of iris-cli and because the alm editor was deprecated by its author (consider using the designtsx.com instead)
...
Former-commit-id: 52888ae3fd0da9e5b98e095c665a1a538381ddef
2020-04-19 16:47:15 +03:00
Gerasimos (Makis) Maropoulos
dcf02480b3
Implement ResultHandler as requested at: https://github.com/kataras/iris/issues/1465
...
Former-commit-id: 9d76c2f00766afd53cf6e591c25f861f179dd817
2020-04-18 22:40:47 +03:00
Gerasimos (Makis) Maropoulos
1bb76853a9
.DI() to ConfigureContainer(...builders)
...
Former-commit-id: 169671a8b5b706dc8f136e68c1a060f27a2c421b
2020-04-17 15:56:36 +03:00
Gerasimos (Makis) Maropoulos
eafa63da50
add hCaptcha middleware and example and memstore json struct tags
...
Former-commit-id: 31e4f68429e354c9130ebcf3829683a6d52e4492
2020-04-14 02:22:57 +03:00
Gerasimos (Makis) Maropoulos
486e57b9ae
gofmt
...
Former-commit-id: 23590c343ae9d351f3bed0a64487bb31c58f0dba
2020-04-13 10:03:40 +03:00
Gerasimos (Makis) Maropoulos
6432e34151
typo fix on recaptcha middleware...
...
Former-commit-id: 214c56fcd84c86742175e37185e130eeae85f07f
2020-04-11 20:23:02 +03:00
Gerasimos (Makis) Maropoulos
e9b10b14a3
add read-body example
...
Former-commit-id: 7d7afa555e66fbe7edfa31203c26b4b550f336f4
2020-04-11 00:55:31 +03:00
Gerasimos (Makis) Maropoulos
978718454a
add 'context.StopWithStatus, StopWithJSON, StopWithProblem' and update the json-struct-validation example
...
Former-commit-id: dd0347f22324ef4913be284082b8afc6229206a8
2020-04-10 06:04:46 +03:00
Gerasimos (Makis) Maropoulos
ad154ea479
add 'app.Validator' field for ReadJSON, ReadXML, ReadMsgPack, ReadYAML, ReadForm, ReadQuery data validation, defaults to empty but can be set-ed to 3rd-party packages
...
Former-commit-id: e42d9be5928edcdaad4579c008f741b1a7d97da9
2020-04-09 19:02:08 +03:00
Gerasimos (Makis) Maropoulos
1b02f048ef
new 'Party.DI()' method to return the Party's instance of the new 'APIBuilderDI' and move the DI-relative Router to this new APIBuilderDI
...
Former-commit-id: 2fb81406c6e3162991c90e0918a3cac1b77c2b54
2020-04-08 20:04:56 +03:00
Gerasimos (Makis) Maropoulos
837787104b
add context.Protobuf, MsgPack, ReadProtobuf, ReadMsgPack methods
...
Former-commit-id: 39d547ecfb1516505a1eb76a12a1f6e9e4111962
2020-04-08 16:48:22 +03:00
Gerasimos (Makis) Maropoulos
ee4213f72d
update example for validator v10 (go module)
...
Former-commit-id: dcd729ea0dc6775ca657db2950d2bda5d21388c1
2020-04-07 19:27:49 +03:00
liguoqinjim
f98ee4e725
fix .dokerignore to .dockerignore
...
Former-commit-id: 61ac943adb6efa7afe96662ab46295be2203a1e3
2020-03-19 16:13:47 +08:00
Gerasimos (Makis) Maropoulos
264c417f4e
move benchmarks to a repository which its results are re-calculated and its README re-generated on each run. This will allow dev community to participate and contribute
...
Former-commit-id: 64287e0be3861663f58fb581cd1f9822379f6586
2020-03-12 01:51:21 +02:00
Gerasimos (Makis) Maropoulos
aea836efc7
add a full gRPC example as previously requested at: https://github.com/kataras/iris/issues/1449
...
Former-commit-id: 0cb5121e7d44644f7f0eb34597ff34274157fe95
2020-03-07 12:53:23 +02:00
Gerasimos (Makis) Maropoulos
dd18dc9ee8
Add a gRPC router wrapper, useful for the upcoming grpc controller example
...
Former-commit-id: ae4c29597ce1336a74278b86b59d08b6c91eab0a
2020-03-06 12:28:08 +02:00
Gerasimos (Makis) Maropoulos
0d26f24eb7
examples: replace all app.Run(iris.Addr(...)) with app.Listen just for the shake of simplicity, both are doing the same exact thing as it's described on the http listening first example.
...
Former-commit-id: d20afb2e899aee658a8e0ed1693357798df93462
2020-03-05 22:41:27 +02:00