Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,846 for Accept (0.6 sec)

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

          "ResponseBodyEnd",
          "ConnectionReleased",
          "CallEnd",
        )
      }
    
      private fun newEventSource(accept: String? = null): EventSource {
        val builder =
          Request.Builder()
            .url(server.url("/"))
        if (accept != null) {
          builder.header("Accept", accept)
        }
        val request = builder.build()
        val factory = createFactory(client)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  2. tests/test_ws_router.py

    app = FastAPI()
    
    
    @app.websocket_route("/")
    async def index(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_text("Hello, world!")
        await websocket.close()
    
    
    @router.websocket_route("/router")
    async def routerindex(websocket: WebSocket):
        await websocket.accept()
        await websocket.send_text("Hello, router!")
        await websocket.close()
    
    
    @prefix_router.websocket_route("/")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 7.5K bytes
    - Viewed (0)
  3. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

                    If you did this intentionally, please accept the change and provide an explanation:
                    <a class="btn btn-info" role="button" data-toggle="collapse" href="#accept-${changeId}" aria-expanded="false" aria-controls="collapseExample">Accept this change</a>
                    <div class="collapse" id="accept-${changeId}">
                      <div class="well">
    Groovy
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Tue Apr 23 08:40:36 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt

            .url(server.url("/"))
            .header("Accept", "text/plain")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.body.string()).isEqualTo("hello, OkHttp")
    
        val recorded = server.takeRequest()
        assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
        assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip")
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/PatternFilenameFilterTest.java

      public void testAccept() {
        File dir = new File("foo");
        FilenameFilter filter = new PatternFilenameFilter("a+");
        assertTrue(filter.accept(dir, "a"));
        assertTrue(filter.accept(dir, "aaaa"));
        assertFalse(filter.accept(dir, "b"));
    
        // Show that dir is ignored
        assertTrue(filter.accept(null, "a"));
      }
    
      public void testNulls() throws Exception {
        NullPointerTester tester = new NullPointerTester();
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 2K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/contracts/descriptorContractUtils.kt

            KtContractCallsInPlaceContractEffectDeclaration(callsEffect.variableReference.accept(), callsEffect.kind)
    
        override fun visitLogicalOr(logicalOr: LogicalOr, data: Unit): Any = KtContractBinaryLogicExpression(
            logicalOr.left.accept(),
            logicalOr.right.accept(),
            KtContractBinaryLogicExpression.KtLogicOperation.OR
        )
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Dec 01 13:42:49 GMT 2022
    - 5.7K bytes
    - Viewed (0)
  7. cni/pkg/iptables/testdata/default_ipv6.golden

    iptables -t mangle -A ISTIO_PRERT -s e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164 -p tcp -m tcp -j ACCEPT
    iptables -t nat -A ISTIO_OUTPUT -d e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164 -p tcp -m tcp -j ACCEPT
    iptables -t mangle -A ISTIO_PRERT ! -d 127.0.0.1/32 -p tcp -i lo -j ACCEPT
    iptables -t mangle -A ISTIO_PRERT -p tcp -m tcp --dport 15008 -m mark ! --mark 0x539/0xfff -j TPROXY --on-port 15008 --tproxy-mark 0x111/0xfff
    Plain Text
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt

                callsEffect.valueParameterReference.accept(),
                callsEffect.kind
            )
    
        override fun visitLogicalBinaryOperationContractExpression(
            binaryLogicExpression: ConeBinaryLogicExpression,
            data: Unit
        ): KtContractBinaryLogicExpression = KtContractBinaryLogicExpression(
            binaryLogicExpression.left.accept(),
            binaryLogicExpression.right.accept(),
            when (binaryLogicExpression.kind) {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Jul 26 14:29:20 GMT 2023
    - 7K bytes
    - Viewed (0)
  9. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    -  while (*__s != '\0' && *__s != __accept1 && *__s != __accept2)
    -    ++__s;
    -  return *__s == '\0' ? NULL : (char *) (size_t) __s;
    -}
    -
    -__STRING_INLINE char *__strpbrk_c3 (const char *__s, int __accept1,
    -				    int __accept2, int __accept3);
    -__STRING_INLINE char *
    -__strpbrk_c3 (const char *__s, int __accept1, int __accept2, int __accept3)
    -{
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

            .body("A")
            .build(),
        )
        server.enqueue(
          MockResponse.Builder()
            .body("B")
            .build(),
        )
        val url = server.url("/")
        val request =
          Request.Builder()
            .url(url)
            .header("Accept-Language", "fr-CA")
            .header("Accept-Charset", "UTF-8")
            .header("Accept-Encoding", "identity")
            .build()
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top