Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Auth (0.01 sec)

  1. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

            code = 401,
            body = "{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}",
            headers = Headers.headersOf("content-type", "application/json"),
          ),
        )
        val source = newEventSource()
        assertThat(source.request().url.encodedPath).isEqualTo("/")
        listener.assertFailure(code = 401, message = "{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}")
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt

        listener.assertFailure("canceled")
      }
    
      @Test
      fun failureWith401IsReadable() {
        server.enqueue(
          MockResponse(
            code = 401,
            body = "{\"error\":{\"message\":\"No auth credentials found\",\"code\":401}}",
            headers = Headers.headersOf("content-type", "application/json"),
          ),
        )
        server.enqueue(
          MockResponse(
            body =
              """
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 13:49:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

     * canceling may break the entire connection.
     */
    class RealCall(
      val client: OkHttpClient,
      /** The application's original request unadulterated by redirects or auth headers. */
      val originalRequest: Request,
      val forWebSocket: Boolean,
    ) : Call,
      Cloneable,
      Lockable {
      private val connectionPool: RealConnectionPool = client.connectionPool.delegate
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
Back to top