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

# Cookbook

## [Protecting Access using JWT Tokens](/flat/cookbook/x-flat-jwt.md)

## [Performing Additional Checks on JWT Access Tokens](/flat/cookbook/checking-jwt-tokens.md)

## [Proxying Requests to Upstream APIs (Swagger)](/flat/cookbook/proxy-requests.md)

## [Testing Templates](/flat/cookbook/test-templates.md)

## [Testing API Requests](/flat/cookbook/test-api-request.md)

## [Testing with Backend Requests](/flat/cookbook/test-backend.md)

## [File Serving](/flat/cookbook/file-serving.md)

## [Error Handling](/flat/cookbook/error-flow.md)

## [Extracting Common Initialization Flow Tasks](/flat/cookbook/init-flow.md)

## [Using Environment Variables](/flat/cookbook/envvars.md)

## [Logging Custom Fields](/flat/cookbook/custom-logging.md)

## [Forwarding a Request to an Upstream API (Flow)](/flat/cookbook/forward-request-upstream.md)

## [How can I pass an arbitrary header field to an upstream system?](/flat/cookbook/pass-header-field-upstream.md)

## [How can I pass response headers to the client?](/flat/cookbook/pass-header-field-downstream.md)

## [How can I increase the request timeout to deal with a slow upstream system?](/flat/cookbook/request-timeout.md)

## [Sending POST requests](/flat/cookbook/upstream-post-requests.md)

## [Signing JWT](/flat/cookbook/jwt.md)

## [How can I inspect the client request?](/flat/cookbook/see-client-request.md)

## [Auto Docs with Swagger UI](/flat/cookbook/swagger-docs.md)

## [Using the Built-in Mocking](/flat/cookbook/builtin-mocking.md)
