Commit Graph

1459 Commits

Author SHA1 Message Date
Gerasimos Maropoulos
e084307366 Set one of the community's logos as banner, this will be here for 10 days and maybe more if users like it
https://github.com/kataras/iris/issues/153#issuecomment-228304573
2016-07-23 13:25:13 +03:00
Gerasimos Maropoulos
aa26a89533 Fix https://github.com/kataras/iris/issues/293 2016-07-21 23:08:42 +03:00
Gerasimos Maropoulos
85a2e98ba4 Try #https://github.com/kataras/iris/issues/275 2016-07-21 20:33:00 +03:00
Gerasimos Maropoulos
6b71452222 Update the readme with the newest benchmarks: 21 July 2016 2016-07-21 05:48:35 +03:00
Gerasimos Maropoulos
12cae9be3e Iris run: (rizla) disable the banner on each reload, fix two-times reload on windows 2016-07-21 03:20:08 +03:00
Gerasimos Maropoulos
0dbab32d9d Set the default hostname to "0.0.0.0" from "127.0.0.1" - as golang's net.Listener does by default
I changed that because some guys has problems in their hosting machines,
and they should use the "127.0..0.1" instead of "0.0.0.0", if you have
problems just pass `iris.Listen("127.0.0.1:8080") instead of
`iris.Listen(":8080")`
2016-07-21 00:03:36 +03:00
Gerasimos Maropoulos
352b297977 Fix https://github.com/iris-contrib/sessiondb/issues/1 2016-07-20 20:23:54 +03:00
Gerasimos Maropoulos
72c5d2882b Update Readme: Fix Book sections for response & template engines 2016-07-20 07:07:41 +03:00
Gerasimos Maropoulos
245c732ff8 Show the updated benchmarks (July 19). Don't forget, book is updated: https://www.gitbook.com/book/kataras/iris/details 2016-07-20 07:04:27 +03:00
Gerasimos Maropoulos
fb45f71b8c Update History, 4.0.0-alpha.4 - Book is updated also. 2016-07-20 06:35:50 +03:00
Gerasimos Maropoulos
7ed5ed4519 Iris 4.0.0-alpha.4. Book is finally updated https://kataras.gitbooks.io/iris/content/ also 2016-07-20 06:33:24 +03:00
Gerasimos Maropoulos
566a194836 Update glide.lock for fasthttp - cookies are not url encoded anymore 2016-07-19 09:00:37 +03:00
Gerasimos Maropoulos
0a427c1ce0 Next step is to update the gitbook for the v4 template engines changes and new features 2016-07-19 08:58:10 +03:00
Gerasimos Maropoulos
69a4f11718 Fix https://github.com/kataras/iris/issues/303 2016-07-19 08:48:57 +03:00
Gerasimos Maropoulos
6f91e6c588 Add option for Gzip again, I removed it after v3 but seems users wants it back 2016-07-19 06:50:49 +03:00
Gerasimos Maropoulos
084b689d37 Fix https://github.com/kataras/iris/issues/301 2016-07-19 06:35:52 +03:00
Gerasimos Maropoulos
b93ac27034 Set the session's configuration to a pointer 2016-07-19 06:19:37 +03:00
Gerasimos Maropoulos
d04edb96bb Add Response Engines on the README, examples updated. book is the next step 2016-07-19 05:43:34 +03:00
Gerasimos Maropoulos
d90cfaea81 Nothing special here, read the HISTORY.md for 4.0.0-alpha.3 release
https://github.com/kataras/iris/blob/master/HISTORY.md
2016-07-18 18:16:58 +03:00
Gerasimos Maropoulos
9326a771aa serious fixes from the ago-2minutes release of the 4.0.0-alpha.3, read the HISTORY.md
**How to upgrade**: remove your `$GOPATH/src/github.com/kataras/iris`
folder, open your command-line and execute this command: `go get -u
github.com/kataras/iris/iris`.

## 4.0.0-alpha.2 -> 4.0.0-alpha.3

**New**

A **Response Engine** gives you the freedom to create/change the
render/response writer for

- `context.JSON`
- `context.JSONP`
- `context.XML`
- `context.Text`
- `context.Markdown`
- `context.Data`
- `context.Render("my_custom_type",mystructOrData{},
iris.RenderOptions{"gzip":false,"charset":"UTF-8"})`
- `context.MarkdownString`
- `iris.ResponseString(...)`

**Fix**
- https://github.com/kataras/iris/issues/294

**Small changes**

- `iris.Config.Charset`, before alpha.3 was `iris.Config.Rest.Charset` &
`iris.Config.Render.Template.Charset`, but you can override it at
runtime by passinth a map `iris.RenderOptions` on the `context.Render`
call .
- `iris.Config.IsDevelopment` , before alpha.1 was
`iris.Config.Render.Template.IsDevelopment`

**Websockets changes**

No need to import the `github.com/kataras/iris/websocket` to use the
`Connection` iteral, the websocket moved inside `kataras/iris` , now all
exported variables' names have the prefix of `Websocket`, so the old
`websocket.Connection` is now `iris.WebsocketConnection`.

Generally, no other changes on the 'frontend API', for response engines
examples and how you can register your own to add more features on
existing response engines or replace them, look
[here](https://github.com/iris-contrib/response).

**BAD SIDE**: E-Book is still pointing on the v3 release, but will be
updated soon.
2016-07-18 18:03:43 +03:00
Gerasimos Maropoulos
675c0d510c Update to 4.0.0-alpha.3 - Response Engines, 'inject' the context.JSON/JSONP/Text/Data/Markdown/Render, Read HISTORY.md
## 4.0.0-alpha.2 -> 4.0.0-alpha.3

**New**

A **Response Engine** gives you the freedom to create/change the
render/response writer for

- `context.JSON`
- `context.JSONP`
- `context.XML`
- `context.Text`
- `context.Markdown`
- `context.Data`
- `context.Render("my_custom_type",mystructOrData{},
iris.RenderOptions{"gzip":false,"charset":"UTF-8"})`
- `context.MarkdownString`
- `iris.ResponseString(...)`

**Fix**
- https://github.com/kataras/iris/issues/294

**Small changes**

- `iris.Config.Charset`, before alpha.3 was `iris.Config.Rest.Charset` &
`iris.Config.Render.Template.Charset`, but you can override it at
runtime by passinth a map `iris.RenderOptions` on the `context.Render`
call .
- `iris.Config.IsDevelopment` , before alpha.1 was
`iris.Config.Render.Template.IsDevelopment`

**Websockets changes**

No need to import the `github.com/kataras/iris/websocket` to use the
`Connection` iteral, the websocket moved inside `kataras/iris` , now all
exported variables' names have the prefix of `Websocket`, so the old
`websocket.Connection` is now `iris.WebsocketConnection`.

Generally, no other changes on the 'frontend API', for response engines
examples and how you can register your own to add more features on
existing response engines or replace them, look
[here](https://github.com/iris-contrib/response).

**BAD SIDE**: E-Book is still pointing on the v3 release, but will be
updated soon.
2016-07-18 17:40:42 +03:00
Makis Maropoulos
077984bd60 🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md
**Sessions were re-written **

- Developers can use more than one 'session database', at the same time,
to store the sessions
- Easy to develop a custom session database (only two functions are
required (Load & Update)), [learn
more](https://github.com/iris-contrib/sessiondb/blob/master/redis/database.go)
- Session databases are located
[here](https://github.com/iris-contrib/sessiondb), contributions are
welcome
- The only frontend deleted 'thing' is the: **config.Sessions.Provider**
- No need to register a database, the sessions works out-of-the-box
- No frontend/API changes except the
`context.Session().Set/Delete/Clear`, they doesn't return errors
anymore, btw they (errors) were always nil :)
- Examples (master branch) were updated.

```sh
$ go get github.com/iris-contrib/sessiondb/$DATABASE
```

```go
db := $DATABASE.New(configurationHere{})
iris.UseSessionDB(db)
```

> Note: Book is not updated yet, examples are up-to-date as always.
2016-07-15 20:50:36 +03:00
Makis Maropoulos
af4df18ec4 Add more todos - the first 3 should be implemented today 2016-07-14 10:46:24 +03:00
Makis Maropoulos
cf03512590 remove wiki link from readme 2016-07-13 20:41:08 +03:00
Makis Maropoulos
adf82c7aa2 Update readme versioning section - add v3 information 2016-07-13 19:39:08 +03:00
Makis Maropoulos
9892620ce5 Add a simple map type RenderOptions to help users remember it easier 2016-07-13 14:59:37 +03:00
Makis Maropoulos
74aeb081ee move the template engines manager to the iris-contrib/template 2016-07-13 14:54:56 +03:00
Makis Maropoulos
f7a782b692 Remove deprecated functions 2016-07-13 14:05:32 +03:00
Makis Maropoulos
e0ebc84bfe It was a git-push error - remove previous' versions configuration https://github.com/kataras/iris/issues/280 2016-07-13 12:41:17 +03:00
Makis Maropoulos
b99afb2875 Update to v4.0.0-alpha.1 2016-07-13 06:28:09 +03:00
Makis Maropoulos
5cfe19c793 Check for cors middleware conflicts on mux 2016-07-13 05:02:43 +03:00
Makis Maropoulos
688acce071 Fix config's wrong editor's import 2016-07-13 00:32:40 +03:00
Makis Maropoulos
0995331f78 Fix broken configs from last commit 2016-07-12 19:21:26 +02:00
Makis Maropoulos
e61d1f8c3c Extend Read & Write BufferSize header and max request body size is 8mb now 2016-07-12 15:40:06 +02:00
Makis Maropoulos
4fd3460662 Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-08 22:12:13 +02:00
Makis Maropoulos
230d063e6d fix tests 2016-07-08 22:11:57 +02:00
Makis Maropoulos
40ab94a9fc Fix tests 2016-07-08 22:11:39 +02:00
Makis Maropoulos
791c01d7e7 Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-08 21:33:54 +02:00
Makis Maropoulos
68111f57d1 Replace fasthttp's with correct remove cookie code... fixes flash messages and sessions on some cases 2016-07-08 21:33:41 +02:00
Makis Maropoulos
032cc01792 Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-08 19:42:05 +02:00
Makis Maropoulos
6761d58e53 Final v3 2016-07-08 19:41:50 +02:00
Makis Maropoulos
52099314e6 Prepare for custom child router(s) via plugin(s) for tomorrow 2016-07-07 23:59:00 +02:00
Makis Maropoulos
58fddece5b Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-07 17:17:50 +02:00
Makis Maropoulos
e3b2c68085 Parse server's addr before use it 2016-07-07 17:17:34 +02:00
Makis Maropoulos
96734efedc Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-07 16:02:29 +02:00
Makis Maropoulos
981fef9ecf add test for cookie set/get/remove to help this guy https://github.com/kataras/iris/issues/270 2016-07-07 16:02:15 +02:00
Makis Maropoulos
aefaff1297 Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-07 13:05:31 +02:00
Makis Maropoulos
0cb2351a4f Fix some invalid unlocks from the last change 2016-07-07 13:05:11 +02:00
Makis Maropoulos
ec5a71e0af Merge remote-tracking branch 'refs/remotes/origin/dev' 2016-07-07 02:50:21 +02:00
Makis Maropoulos
871b43cae7 Update history 2016-07-07 02:43:33 +02:00