data

fun <T> data(data: T): StreamResponse.Data<T>

Creates a data response with the given data.

Return

A Data instance containing the item.

Parameters

data

The data item for the response.