serverStreamingRpcFunction

fun <RequestT, ResponseT> serverStreamingRpcFunction(channel: Channel, method: MethodDescriptor<RequestT, ResponseT>, callOptions: CallOptions = CallOptions.DEFAULT, headers: suspend () -> Metadata = { GrpcMetadata() }): (RequestT) -> Flow<ResponseT>(source)

Returns a function object representing a server streaming RPC.

The input headers may be asynchronously formed. headers will be called each time the returned RPC is called - the headers are not cached.