Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for isEventStream (0.09 seconds)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

        response.use {
          if (!response.isSuccessful) {
            listener.onFailure(this, null, response)
            return
          }
    
          val body = response.body
    
          if (!body.isEventStream()) {
            listener.onFailure(
              this,
              IllegalStateException("Invalid content-type: ${body.contentType()}"),
              response,
            )
            return
          }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Oct 03 07:51:20 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top