# 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` |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://iris-go.gitbook.io/iris/dependency-injection/inputs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
