Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 561 for promise (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

        val result = if (flags < FLAGS.size) FLAGS[flags]!! else BINARY[flags]
        // Special case types that have overlap flag values.
        return when {
          type == TYPE_PUSH_PROMISE && flags and FLAG_END_PUSH_PROMISE != 0 -> {
            result.replace("HEADERS", "PUSH_PROMISE") // TODO: Avoid allocation.
          }
          type == TYPE_DATA && flags and FLAG_COMPRESSED != 0 -> {
            result.replace("PRIORITY", "COMPRESSED") // TODO: Avoid allocation.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

        val request =
          Request.Builder()
            .url(url)
            .build()
    
        val promise = CompletableFuture<Response>()
    
        val call = client.newCall(request)
        call.enqueue(
          object : Callback {
            override fun onFailure(
              call: Call,
              e: IOException,
            ) {
              promise.completeExceptionally(e)
            }
    
            override fun onResponse(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/FrameLogTest.kt

        assertThat(frameLog(true, 3, 10000, TYPE_CONTINUATION, 0x4))
          .isEqualTo("<< 0x00000003 10000 CONTINUATION  END_HEADERS")
        assertThat(frameLog(true, 4, 10000, TYPE_PUSH_PROMISE, 0x4))
          .isEqualTo("<< 0x00000004 10000 PUSH_PROMISE  END_PUSH_PROMISE")
      }
    
      @Test
      fun flagOverlapOn0x20() {
        assertThat(frameLog(true, 3, 10000, TYPE_HEADERS, 0x20))
          .isEqualTo("<< 0x00000003 10000 HEADERS       PRIORITY")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/ListenableFuture.java

      }
    
      @JsFunction
      interface IThenOnRejectedCallbackFn<V extends @Nullable Object> {
        V onInvoke(Object p0);
      }
    }
    
    /** Subset of the elemental2 Promise API. */
    @JsType(isNative = true, namespace = JsPackage.GLOBAL, name = "Promise")
    class Promise<T extends @Nullable Object> implements IThenable<T> {
    
      @JsFunction
      interface PromiseExecutorCallbackFn<T extends @Nullable Object> {
        @JsFunction
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 24 18:27:19 GMT 2023
    - 3.9K bytes
    - Viewed (1)
  5. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

        headersDelayAmount = delay
        headersDelayUnit = unit
      }
    
      fun getHeadersDelay(unit: TimeUnit): Long = unit.convert(headersDelayAmount, headersDelayUnit)
    
      fun withPush(promise: PushPromise) =
        apply {
          promises.add(promise)
        }
    
      fun withSettings(settings: Settings) =
        apply {
          this.settings = settings
        }
    
      fun withWebSocketUpgrade(listener: WebSocketListener) =
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

        }
    
        override fun pushPromise(
          streamId: Int,
          associatedStreamId: Int,
          headerBlock: List<Header>,
        ) {
          this.type = Http2.TYPE_PUSH_PROMISE
          this.streamId = streamId
          this.associatedStreamId = associatedStreamId
          this.headerBlock = headerBlock
        }
    
        override fun alternateService(
          streamId: Int,
          origin: String,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt

        /** HTTP/2: Size in bytes of the table used to decode the sender's header blocks. */
        const val HEADER_TABLE_SIZE = 1
    
        /** HTTP/2: The peer must not send a PUSH_PROMISE frame when this is 0. */
        const val ENABLE_PUSH = 2
    
        /** Sender's maximum number of concurrent streams. */
        const val MAX_CONCURRENT_STREAMS = 4
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  8. docs/en/docs/js/termynal.js

    			}
            }
        }
    
        /**
         * Helper function for animation delays, called with `await`.
         * @param {number} time - Timeout, in ms.
         */
        _wait(time) {
            return new Promise(resolve => setTimeout(resolve, time));
        }
    
        /**
         * Converts line data objects into line elements.
         *
         * @param {Object[]} lineData - Dynamically loaded lines.
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu May 12 00:06:16 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  9. operator/cmd/mesh/profile.go

    // ProfileCmd is a group of commands related to profile listing, dumping and diffing.
    func ProfileCmd(_ cli.Context) *cobra.Command {
    	pc := &cobra.Command{
    		Use:   "profile",
    		Short: "Commands related to Istio configuration profiles",
    		Long:  "The profile command lists, dumps or diffs Istio configuration profiles.",
    		Example: "istioctl profile list\n" +
    			"istioctl install --set profile=demo  # Use a profile from the list",
    	}
    
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  10. manifests/charts/ztunnel/templates/zzz_profile.yaml

    {{- $_ := unset $.Values "defaults" }}
    {{- $profile := dict }}
    {{- with .Values.profile }}
    {{- with $.Files.Get (printf "files/profile-%s.yaml" .)}}
    {{- $profile = (. | fromYaml) }}
    {{- else }}
    {{ fail (cat "unknown profile" $.Values.profile) }}
    {{- end }}
    {{- end }}
    {{- with .Values.compatibilityVersion }}
    {{- with $.Files.Get (printf "files/profile-compatibility-version-%s.yaml" .) }}
    Others
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Thu Jan 18 16:33:33 GMT 2024
    - 1.3K bytes
    - Viewed (0)
Back to top