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

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

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

# RequestCallbacks

[common]\
data class [RequestCallbacks](index.md)(val onChunk: [ChunkCallback](../ChunkCallback/index.md)? = null, val onComplete: [CompletionCallback](../CompletionCallback/index.md)? = null)

The event-driven hooks of a pipeline session: delivered serially and in order, the completion once after the last chunk. A raise from either is reported on its thread and the engine proceeds.

## Constructors

| | |
|---|---|
| [RequestCallbacks](RequestCallbacks.md) | [common]<br>constructor(onChunk: [ChunkCallback](../ChunkCallback/index.md)? = null, onComplete: [CompletionCallback](../CompletionCallback/index.md)? = null) |

## Properties

| Name | Summary |
|---|---|
| [onChunk](onChunk.md) | [common]<br>val [onChunk](onChunk.md): [ChunkCallback](../ChunkCallback/index.md)? = null |
| [onComplete](onComplete.md) | [common]<br>val [onComplete](onComplete.md): [CompletionCallback](../CompletionCallback/index.md)? = null |