---
title: "setAttr"
sidebar_label: "setAttr"
description: "Kotlin binding reference: setAttr."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ServerRequest](index.md)/[setAttr](setAttr.md)

# setAttr

[common]\
fun [setAttr](setAttr.md)(name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html))

Attach a per-request attribute, the middleware-to-handler channel.