Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 521 for Etag (0.01 sec)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

      private fun enableLogging(
        logger: String,
        tag: String,
      ) {
        val logger = Logger.getLogger(logger)
        if (configuredLoggers.add(logger)) {
          logger.useParentHandlers = false
          // log based on levels at startup to avoid logging each frame
          logger.level =
            when {
              Log.isLoggable(tag, Log.DEBUG) -> Level.FINE
              Log.isLoggable(tag, Log.INFO) -> Level.INFO
              else -> Level.WARNING
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat Oct 25 11:16:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt

            .url("https://square.com")
            .tag(tag as Any)
            .build()
        assertThat(request.tag<Any>()).isSameAs(tag)
        assertThat(request.tag(Any::class)).isSameAs(tag)
        assertThat(request.tag(String::class)).isNull()
    
        // Alternate access APIs also work.
        assertThat(request.tag<Any>()).isSameAs(tag)
        assertThat(request.tag(Any::class)).isSameAs(tag)
      }
    
      @Test
      fun nullRemovesTag() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Oct 24 11:36:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_header_param_models/test_tutorial002.py

        response = client.get(
            "/items/",
            headers=[
                ("save-data", "true"),
                ("if-modified-since", "yesterday"),
                ("traceparent", "123"),
                ("x-tag", "one"),
                ("x-tag", "two"),
            ],
        )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "host": "testserver",
            "save_data": True,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                tagClass = header.tagClass,
                tag = header.tag,
                constructed = header.constructed,
                length = header.length,
                bytes = bytes,
              )
            }
          }
    
          override fun toDer(
            writer: DerWriter,
            value: AnyValue,
          ) {
            writer.write("ANY", value.tagClass, value.tag) {
              writer.writeOctetString(value.bytes)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. schema/index.go

    	for _, value := range strings.Split(field.Tag.Get("gorm"), ";") {
    		if value != "" {
    			v := strings.Split(value, ":")
    			k := strings.TrimSpace(strings.ToUpper(v[0]))
    			if k == "INDEX" || k == "UNIQUEINDEX" {
    				var (
    					name       string
    					tag        = strings.Join(v[1:], ":")
    					idx        = strings.IndexByte(tag, ',')
    					tagSetting = strings.Join(strings.Split(tag, ",")[1:], ",")
    Registered: Sun Dec 28 09:35:17 UTC 2025
    - Last Modified: Wed May 21 02:35:56 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CallTagsTest.kt

            .tag(Integer::class, 5 as Integer)
            .tag(String::class, "hello")
            .build()
        val call = client.newCall(request)
    
        // Check the Kotlin-focused APIs.
        assertThat(call.tag(String::class)).isEqualTo("hello")
        assertThat(call.tag(Integer::class)).isEqualTo(5)
        assertThat(call.tag(Boolean::class)).isNull()
        assertThat(call.tag(Any::class)).isNull()
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 26 14:54:46 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BasicDerAdapter.kt

    /**
     * Handles basic types that always use the same tag. This supports optional types and may set a type
     * hint for further adapters to process.
     *
     * Types like ANY and CHOICE that don't have a consistent tag cannot use this.
     */
    internal data class BasicDerAdapter<T>(
      private val name: String,
      /** The tag class this adapter expects, or -1 to match any tag class. */
      val tagClass: Int,
      /** The tag this adapter expects, or -1 to match any tag. */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/spnego/NegTokenInitTest.java

            // Tag [3]
            byte[] tokenTag3 = buildInitToken(new ASN1ObjectIdentifier[] { OID_KRB }, null, null, mic, false, null, null, null);
            NegTokenInit p3 = new NegTokenInit(tokenTag3);
            assertArrayEquals(mic, p3.getMechanismListMIC(), "MIC should be parsed from tag [3]");
        }
    
        @Test
        @DisplayName("Tag [3] MIC with non-OctetString is ignored (no crash)")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/java/okhttp3/CallJavaTest.java

          .url(HttpUrl.get("https://square.com/"))
          .tag(Integer.class, 5)
          .tag(String.class, "hello")
          .build();
        Call call = client.newCall(request);
    
        assertEquals(5, call.tag(Integer.class));
        assertEquals("hello", call.tag(String.class));
        assertEquals(null, call.tag(Boolean.class));
        assertEquals(null, call.tag(Object.class));
      }
    
      @Test
      public void tagsCanBeComputed() {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Oct 26 14:54:46 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/filter.go

    				var and And
    				if err = d.DecodeElement(&and, &se); err != nil {
    					return err
    				}
    				f.And = and
    				f.andSet = true
    			case "Tag":
    				var tag Tag
    				if err = d.DecodeElement(&tag, &se); err != nil {
    					return err
    				}
    				f.Tag = tag
    				f.tagSet = true
    			case "ObjectSizeLessThan":
    				var sz int64
    				if err = d.DecodeElement(&sz, &se); err != nil {
    					return err
    				}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Wed Sep 04 17:01:26 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top