mirror of
https://github.com/kataras/iris.git
synced 2025-03-14 08:36:28 +01:00
Fix HISTORY.md v4.5.0 entry's format
This commit is contained in:
parent
f66b7e2eab
commit
110f28fda5
10
HISTORY.md
10
HISTORY.md
|
@ -9,8 +9,9 @@
|
|||
- `CheckOrigin func(ctx *Context)`. Manually allow or dissalow client's websocket access, ex: via header **Origin**. Default allow all origins(CORS-like) as before.
|
||||
- `Headers bool`. Allow websocket handler to copy request's headers on the handshake. Default is true
|
||||
With these in-mind the `WebsocketConfiguration` seems like this now :
|
||||
```go
|
||||
type WebsocketConfiguration struct {
|
||||
|
||||
```go
|
||||
type WebsocketConfiguration struct {
|
||||
// WriteTimeout time allowed to write a message to the connection.
|
||||
// Default value is 15 * time.Second
|
||||
WriteTimeout time.Duration
|
||||
|
@ -49,8 +50,9 @@
|
|||
// The default behavior is to allow all origins
|
||||
// you can change this behavior by setting the iris.Config.Websocket.CheckOrigin = iris.WebsocketCheckSameOrigin
|
||||
CheckOrigin func(ctx *Context) bool
|
||||
}
|
||||
```
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
- **REMOVE**: `github.com/kataras/iris/context/context.go` , this is no needed anymore. Its only usage was inside `sessions` and `websockets`, a month ago I did improvements to the sessions as a standalone package, the IContext interface is not being used there. With the today's changes, the iris-contrib/websocket doesn't needs the IContext interface too, so the whole folder `./context` is useless and removed now. Users developers don't have any side-affects from this change.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user