Jun 2, 2025

Java/Kotlin supports query param streaming discriminators

Tomer Aberbach

Software Engineer

The Java/Kotlin SDKs now support configuring a query param as the discriminator for a method that supports both streaming and non-streaming.

When configured this way the HTTP method will result int two generated SDK methods. For example, an HTTP method called create will result in the following two SDK methods:

  • create → doesn’t send the query param discriminator

  • createStreaming → sends the query param discriminator set to true

To configure SSE streaming for your API, send us a note.