> For the complete documentation index, see [llms.txt](https://iris-go.gitbook.io/iris/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iris-go.gitbook.io/iris/dependency-injection/inputs.md).

# Inputs

Here is a list of the built-in dependencies that can be used right away as input parameters:

| Type                                                                                          | Maps To                                                                                                                                               |
| --------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [\*mvc.Application](https://pkg.go.dev/github.com/kataras/iris/v12/mvc?tab=doc#Application)   | Current MVC Application                                                                                                                               |
| [iris.Context](https://pkg.go.dev/github.com/kataras/iris/v12/context?tab=doc#Context)        | Current Iris Context                                                                                                                                  |
| [\*sessions.Session](https://pkg.go.dev/github.com/kataras/iris/v12/sessions?tab=doc#Session) | Current Iris Session                                                                                                                                  |
| [context.Context](https://pkg.go.dev/context/#Context)                                        | [ctx.Request().Context()](https://pkg.go.dev/net/http/#Request.Context)                                                                               |
| [\*http.Request](https://pkg.go.dev/net/http/#Request)                                        | `ctx.Request()`                                                                                                                                       |
| [http.ResponseWriter](https://pkg.go.dev/net/http/#ResponseWriter)                            | `ctx.ResponseWriter()`                                                                                                                                |
| [http.Header](https://pkg.go.dev/net/http/#Header)                                            | `ctx.Request().Header`                                                                                                                                |
| [time.Time](https://pkg.go.dev/time/#Time)                                                    | `time.Now()`                                                                                                                                          |
| [\*golog.Logger](https://pkg.go.dev/github.com/kataras/golog)                                 | Iris Logger                                                                                                                                           |
| [net.IP](https://pkg.go.dev/net/#IP)                                                          | `net.ParseIP(ctx.RemoteAddr())`                                                                                                                       |
| [mvc.Code](https://pkg.go.dev/github.com/kataras/iris/v12/mvc?tab=doc#Code)                   | `ctx.GetStatusCode() int`                                                                                                                             |
| [mvc.Err](https://pkg.go.dev/github.com/kataras/iris/v12/mvc?tab=doc#Err)                     | `ctx.GetErr() error`                                                                                                                                  |
| [iris/context.User](https://pkg.go.dev/github.com/kataras/iris/v12/context?tab=doc#User)      | `ctx.User()`                                                                                                                                          |
| `string`,                                                                                     |                                                                                                                                                       |
| `int, int8, int16, int32, int64`,                                                             |                                                                                                                                                       |
| `uint, uint8, uint16, uint32, uint64`,                                                        |                                                                                                                                                       |
| `float, float32, float64`,                                                                    |                                                                                                                                                       |
| `bool`,                                                                                       |                                                                                                                                                       |
| `slice`                                                                                       | [Path Parameter](https://github.com/kataras/iris/wiki/Routing-path-parameter-types)                                                                   |
| Struct                                                                                        | [Request Body](https://github.com/kataras/iris/tree/main/_examples/request-body) of `JSON`, `XML`, `YAML`, `Form`, `URL Query`, `Protobuf`, `MsgPack` |
