Gerasimos (Makis) Maropoulos
37c766fef7
new x/errors package to handle HTTP wire errors
2022-02-24 23:49:46 +02:00
Gerasimos (Makis) Maropoulos
41026c9209
publish v12.2.0-alpha6
2022-02-18 22:19:33 +02:00
Gerasimos (Makis) Maropoulos
4899fe95f4
more improvements to the x/client new sub-package
2022-01-23 01:21:31 +02:00
Gerasimos (Makis) Maropoulos
f633ab4b99
new party controllers example
2022-01-08 19:54:33 +02:00
Gerasimos (Makis) Maropoulos
48577b7ff1
minor
2022-01-06 18:49:11 +02:00
Gerasimos (Makis) Maropoulos
d8dde0b958
add http timeout example
2022-01-04 23:06:39 +02:00
Gerasimos (Makis) Maropoulos
4aa93ae872
mysql example: security fix
2021-12-30 19:32:20 +02:00
Gerasimos (Makis) Maropoulos
226a4cb064
add one more project structure recommendation
2021-11-19 14:13:42 +02:00
Gerasimos (Makis) Maropoulos
485395190b
update dependencies
2021-10-31 11:49:39 +02:00
Gerasimos (Makis) Maropoulos
bf54d33a3e
add new ':email' path parameter and revert the jsoniter removal
2021-10-13 16:22:22 +03:00
Nanik T
928ec984f8
fix: add go.mod and go.sum to allow bootstrapper compiled indepedently
2021-07-31 12:16:35 +10:00
Gerasimos (Makis) Maropoulos
6d3884b0ce
add iris.IsErrEmptyJSON helper. See HISTORY.md
2021-06-16 13:52:39 +03:00
Gerasimos (Makis) Maropoulos
ff58e0c049
minor fix on _examples/request-logger/accesslog-proxy
2021-06-15 00:49:42 +03:00
Gerasimos (Makis) Maropoulos
856f65be78
remove the 'retract' directive, as it's only available on the latest go release
2021-05-28 19:09:16 +03:00
Gerasimos (Makis) Maropoulos
ce6c455601
add Party.RemoveRoute method as requested in the community chat
2021-04-04 20:24:21 +03:00
yale8848
8f3e6f7bbf
add CustomPathWordFunc
2021-03-14 20:58:10 +08:00
Gerasimos (Makis) Maropoulos
c1b31ab102
PartyConfigure: try to bind the struct's exported zero fields based on the registered dependencies (if any)
...
If the PartyConfigurator value accepts only static dependencies then we have zero performance penalty, exactly like a Controller (structure) works
2021-02-21 22:24:01 +02:00
Gerasimos (Makis) Maropoulos
6587b387b6
remove travis
2021-02-19 09:41:24 +02:00
Gerasimos (Makis) Maropoulos
0081171aa6
minor
2021-02-19 09:06:22 +02:00
Gerasimos (Makis) Maropoulos
1243150690
let's see
2021-02-19 08:49:15 +02:00
Gerasimos (Makis) Maropoulos
b80bd10903
upgrade dependencies
2021-02-19 08:05:13 +02:00
Gerasimos (Makis) Maropoulos
e901575ca8
Path type parameter error handler: add the parameter index in the input arguments
...
see previous commit
2021-02-15 11:30:29 +02:00
Gerasimos (Makis) Maropoulos
5990e7f432
NEW (HOT) FEATURE: Add custom error handlers on path type parameters error
2021-02-14 15:31:27 +02:00
Gerasimos (Makis) Maropoulos
567c06702f
respect the iris.WithEmptyFormError option on Context.ReadQuery too
...
as requested at: #1727
2021-02-14 13:40:56 +02:00
Gerasimos (Makis) Maropoulos
d26b9bfbed
Add Strict option to httptest as requested at: #1722
2021-02-13 21:21:19 +02:00
Gerasimos (Makis) Maropoulos
5fe233278a
add a new 'uuid' path parameter type e.g. /{id:uuid}
2021-02-12 17:12:23 +02:00
Gerasimos (Makis) Maropoulos
ed33a77019
upgrade jet parser to version 6 as requested
...
relative to: https://github.com/kataras/iris/issues/1723
2021-02-07 02:08:34 +02: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
Gerasimos (Makis) Maropoulos
61f04ee4ff
examples: minor (see previous commits)
...
examples: 3rd-party sse (2): add the same client-side as the original 3rd-party example
2021-01-27 04:51:53 +02:00
Gerasimos (Makis) Maropoulos
bccd5eb388
examples: server-sent events: add a second 3rd-party pkg usage example
2021-01-27 04:32:52 +02:00
Gerasimos (Makis) Maropoulos
f7757c0793
fix https://github.com/kataras/iris/issues/1713 and add a simple usage example of the 'RemoveHandler'
2021-01-27 01:22:20 +02:00
Gerasimos (Makis) Maropoulos
197df1ef64
minor (see previous commit)
2021-01-24 23:49:37 +02:00
Gerasimos (Makis) Maropoulos
53b3ade7e0
New feature: Context.ReadJSONStream
2021-01-24 23:34:01 +02:00
Gerasimos (Makis) Maropoulos
435f284815
New feature: Fallback views. Read HISTORY.md
2021-01-24 14:08:37 +02:00
Gerasimos (Makis) Maropoulos
6c823e4864
Add example for #1706 (we already cover that functionality through the rest of the examples, but make it clear for newcomers that, dependencies can be used for that kind of reasons as well)
2021-01-21 05:57:37 +02:00
Gerasimos (Makis) Maropoulos
21eee99970
thanks @rsousacode and @carlos-enginner for your donations ❤️
...
please check your GitHub notifications, you've been invited to the iris-premium repository
2021-01-10 11:51:49 +02:00
Gerasimos (Makis) Maropoulos
8aedf6bc32
:)
2021-01-09 05:41:20 +02:00
Gerasimos (Makis) Maropoulos
cd1f82a08f
minor: fix: examples/mvc/error-handler-preflight: pr #1696
...
[fix _examples] response.timestamp not appear in correct request.
2021-01-09 03:35:33 +02:00
Gerasimos (Makis) Maropoulos
541fa75caf
minor (see previous commit)
2021-01-07 05:36:56 +02:00
Gerasimos (Makis) Maropoulos
240fdb6dc3
API versioning improvements
...
Replace the go-version package with a regex-free alternative semver
the result: versioned apis have almost zero performance cost now
thanks @motogo for your kind donation ❤️ - please check your github notifications
2021-01-07 04:14:41 +02:00
yanghuiwen
eb64006fcb
remove unnecessary code
2021-01-06 12:13:30 +08:00
Gerasimos (Makis) Maropoulos
b409f7807e
New feature: versioning.Aliases
...
Thanks @mulyawansentosa and @remopavithran for your donates ❤️
2021-01-06 01:52:39 +02:00
Gerasimos (Makis) Maropoulos
7aa2d1f9d5
make versioning.Group a Party compatible by using a type alias on its embedded field
...
was reported as missing of the a Party method, the type alias is a good hack to solve that
2021-01-05 18:16:32 +02:00
yanghuiwen
b4400d94df
fix response.timestamp not appear in correct request.
2020-12-29 15:45:57 +08:00
Gerasimos (Makis) Maropoulos
ba30ef4de1
update all basicauth code reference
2020-11-25 04:54:20 +02:00
Gerasimos (Makis) Maropoulos
afa1d89a23
update deps
2020-11-25 04:47:36 +02:00
Gerasimos (Makis) Maropoulos
11e21150d0
more features and fix database/mysql:jwt example
2020-11-24 14:58:02 +02:00
Gerasimos (Makis) Maropoulos
4d857ac53f
New basic auth middleware and GetRaw on User (godocs missing)
2020-11-21 12:04:37 +02:00
Gerasimos (Makis) Maropoulos
c81b97188a
add example for https://github.com/kataras/iris/issues/1671
2020-11-13 00:34:17 +02:00
Gerasimos (Makis) Maropoulos
7b6a8f1e26
simplify some examples
2020-11-07 12:49:14 +02:00
Gerasimos (Makis) Maropoulos
7f523d52e1
thank you @dtrifonov for your donation ❤️
2020-11-06 14:19:53 +02:00
Gerasimos (Makis) Maropoulos
3d5ed9926e
Merge pull request #1662 from kataras/jwt-new-features
...
New JWT Middleware features and more
2020-11-06 11:42:35 +02:00
Gerasimos (Makis) Maropoulos
f049c51336
last touch
2020-11-06 11:36:57 +02:00
Gerasimos (Makis) Maropoulos
d562f09531
OK, I think we are done with the new JWT package
2020-11-05 10:47:56 +02:00
Gerasimos (Makis) Maropoulos
a9e808345b
minor
2020-11-04 21:31:15 +02:00
Gerasimos (Makis) Maropoulos
579c3878f0
add a jwt tutorial + go client
2020-11-04 21:12:13 +02:00
Gerasimos (Makis) Maropoulos
ed38047385
add an example for sessions + view data as requested
2020-11-02 18:46:38 +02:00
Gerasimos (Makis) Maropoulos
f1ebddb6d9
jwt: add redis blocklist
2020-11-02 06:31:28 +02:00
Gerasimos (Makis) Maropoulos
3d59d19de6
add context partial user helper and accept a generic interface on SetUser - the same method now returns an error if the given value does not complete at least one method of the User interface
2020-10-31 15:47:28 +02:00
Gerasimos (Makis) Maropoulos
a70ee32ebd
fix #1665
2020-10-31 05:04:05 +02:00
Gerasimos (Makis) Maropoulos
8eea0296a7
As noticed in my previous commit, the existing jwt libraries added a lot of performance cost between jwt-featured requests and simple requests. That's why a new custom JWT parser was created. This commit adds our custom jwt parser as the underline token signer and verifier
2020-10-30 22:12:16 +02:00
Gerasimos (Makis) Maropoulos
3db77684ec
add a very simple example on JWT and move the previous to the 'overview' sub folder
2020-10-18 20:31:58 +03:00
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