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

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

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

# param

[common]\
fun [param](param.md)(index: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)

A path capture by 0-based index; fails with `NOT_FOUND` when there is none.

[common]\
fun [param](param.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 path capture by its `(?P<name>...)` group name; fails with `NOT_FOUND` when there is none.