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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Http](index.md)/[getStream](getStream.md)

# getStream

[common]\
fun [getStream](getStream.md)(url: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), sink: [ChunkSink](../ChunkSink/index.md), options: [DownloadOptions](../DownloadOptions/index.md) = DEFAULTS)

GET [url](getStream.md) and hand each body chunk to [sink](getStream.md) as it arrives; a sink that throws stops the transfer with `CANCELLED`.