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

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

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

# cookie

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

A cookie's value from the Cookie header, or null.