# Context _Path: en/lua/core/context_ ## Table of Contents - Request Context ## Content # Request Context Access request-scoped context values. Context is set via [Funcs](lua/core/funcs.md) or [Process](lua/core/process.md). ## Loading ```lua local ctx = require("ctx") ``` ### Get Value ```lua local value, err = ctx.get("key") ``` | Parameter | Type | Description | |-----------|------|-------------| | `key` | string | Context key | **Returns:** `any, error` ### Get All Values ```lua local values, err = ctx.all() ``` **Returns:** `table, error` ## Errors | Condition | Kind | Retryable | |-----------|------|-----------| | Empty key | `errors.INVALID` | no | | Key not found | `errors.NOT_FOUND` | no | | No context available | `errors.INTERNAL` | no | See [Error Handling](lua/core/errors.md) for working with errors. ## Navigation Previous: Stream (lua/core/stream) Next: Events (lua/core/events)