API Examples
You can find a number of ready-to-run examples at Iris examples repository.
- Using GET, POST, PUT, PATCH, DELETE and OPTIONS
- Parameters in path
- Querystring parameters
- Multipart/Urlencoded Form
- Another example: query + post form
- Query and post form parameters
- Upload files
- Grouping routes
- Blank Iris without middleware by default
- Using middleware
- Application File Logger
- Controlling Log output coloring
- Request Logging
- Model binding and validation
- Bind Query String
- Bind Any
- Bind URL Path Parameters
- Bind Header
- Bind HTML checkboxes
- JSON, JSONP, XML, Markdown, YAML and MsgPack rendering
- Serving static files
- Serving data from Context
- Template rendering
- Multitemplate
- Redirects
- Custom Middleware
- Using Basic Authentication
- Goroutines inside a middleware
- Custom HTTP configuration
- Socket Sharding
- Support Let’s Encrypt
- Run multiple service using Iris
- Graceful shutdown or restart
- Build a single binary with templates
- Try to bind body into different structs
- HTTP2 server push
- Set and get a cookie