Set and get a cookie Set and get a cookie Secure cookies, encoding and decoding, sessions (and sessions scaling), flash messages and more can be found at the _examples/cookies ...
HTTP2 server push HTTP2 server push Full example code can be found at _examples/response-writer/http2push . Server push lets the server preemptively “push” website assets to t...
Redirects From Handler Globally Redirects Issuing a HTTP redirect is easy. Both internal and external locations are supported. By locations we mean, paths, subdomains, domain...
Testing Basic Authentication Testing Basic Authentication In our first example we will use the iris/httptest subpackage to test Basic Authentication. 1. The main.go source ...
Bind HTML checkboxes Bind HTML checkboxes package main import "github.com/kataras/iris/v12" func main () { app := iris . New () app . RegisterView ( ...
Goroutines inside a middleware Goroutines inside a middleware When starting new Goroutines inside a middleware or handler, you SHOULD NOT use the original context inside it, y...