Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 589 for Decoder (0.09 sec)

  1. cmd/metacache_gen_test.go

    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodemetacache Msgsize() is inaccurate")
    	}
    
    	vn := metacache{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. tests/test_security_http_basic_optional.py

        assert response.json() == {"detail": "Invalid authentication credentials"}
    
    
    def test_security_http_basic_non_basic_credentials():
        payload = b64encode(b"johnsecret").decode("ascii")
        auth_header = f"Basic {payload}"
        response = client.get("/users/me", headers={"Authorization": auth_header})
        assert response.status_code == 401, response.text
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/hash/HashCodeTest.java

      }
    
      public void testRoundTripHashCodeUsingBaseEncoding() {
        HashCode hash1 = Hashing.sha1().hashString("foo", US_ASCII);
        HashCode hash2 = HashCode.fromBytes(BaseEncoding.base16().lowerCase().decode(hash1.toString()));
        assertEquals(hash1, hash2);
      }
    
      public void testObjectHashCode() {
        HashCode hashCode42 = HashCode.fromInt(42);
        assertEquals(42, hashCode42.hashCode());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

    import okhttp3.Headers
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    import okhttp3.internal.connection.RealCall
    import okio.Sink
    import okio.Source
    
    /** Encodes HTTP requests and decodes HTTP responses. */
    interface ExchangeCodec {
      /** The connection or CONNECT tunnel that owns this codec. */
      val carrier: Carrier
    
      /** Returns an output stream where the request body can be streamed. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. docs/em/docs/advanced/response-directly.md

    # ๐Ÿ“จ ๐Ÿ“จ ๐Ÿ”—
    
    ๐Ÿ•โ” ๐Ÿ‘† โœ **FastAPI** *โžก ๐Ÿ› ๏ธ* ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ›Ž ๐Ÿ“จ ๐Ÿ™† ๐Ÿ“Š โšช๏ธโžก๏ธ โšซ๏ธ: `dict`, `list`, Pydantic ๐Ÿท, ๐Ÿ’ฝ ๐Ÿท, โ™’๏ธ.
    
    ๐Ÿ”ข, **FastAPI** ๐Ÿ”œ ๐Ÿ” ๐Ÿ—œ ๐Ÿ‘ˆ ๐Ÿ“จ ๐Ÿ’ฒ ๐ŸŽป โš™๏ธ `jsonable_encoder` ๐Ÿ”ฌ [๐ŸŽป ๐Ÿ”— ๐Ÿ”ข](../tutorial/encoder.md){.internal-link target=_blank}.
    
    โคด๏ธ, โ›… ๐ŸŽ‘, โšซ๏ธ ๐Ÿ”œ ๐Ÿšฎ ๐Ÿ‘ˆ ๐ŸŽป-๐Ÿ”— ๐Ÿ’ฝ (โœ… `dict`) ๐Ÿ”˜ `JSONResponse` ๐Ÿ‘ˆ ๐Ÿ”œ โš™๏ธ ๐Ÿ“จ ๐Ÿ“จ ๐Ÿ‘ฉโ€๐Ÿ’ป.
    
    โœ‹๏ธ ๐Ÿ‘† ๐Ÿ’ช ๐Ÿ“จ `JSONResponse` ๐Ÿ”— โšช๏ธโžก๏ธ ๐Ÿ‘† *โžก ๐Ÿ› ๏ธ*.
    
    โšซ๏ธ ๐Ÿ’ช โš , ๐Ÿ–ผ, ๐Ÿ“จ ๐Ÿ›ƒ ๐ŸŽš โš–๏ธ ๐Ÿช.
    
    ## ๐Ÿ“จ `Response`
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. docs/zh/docs/how-to/general.md

    ๅœจๆ–‡ๆกฃ็•Œ้ขไธญๆ˜พ็คบๅผƒ็”จ็š„**่ทฏๅพ„ๆ“ไฝœ**๏ผŒ่ฏท้˜…่ฏป [ๆ•™็จ‹ - ่ทฏๅพ„ๆ“ไฝœ้…็ฝฎ - ๅผƒ็”จ](../tutorial/path-operation-configuration.md#deprecate-a-path-operation){.internal-link target=_blank} ๆ–‡ๆกฃใ€‚
    
    ## ๅฐ†ไปปไฝ•ๆ•ฐๆฎ่ฝฌๆขไธบ JSON ๅ…ผๅฎนๆ ผๅผ
    
    ่ฆๅฐ†ไปปไฝ•ๆ•ฐๆฎ่ฝฌๆขไธบ JSON ๅ…ผๅฎนๆ ผๅผ๏ผŒ่ฏท้˜…่ฏป [ๆ•™็จ‹ - JSON ๅ…ผๅฎน็ผ–็ ๅ™จ](../tutorial/encoder.md){.internal-link target=_blank} ๆ–‡ๆกฃใ€‚
    
    ## OpenAPI ๅ…ƒๆ•ฐๆฎ - ๆ–‡ๆกฃ
    
    ่ฆๆทปๅŠ  OpenAPI ็š„ๅ…ƒๆ•ฐๆฎ๏ผŒๅŒ…ๆ‹ฌ่ฎธๅฏ่ฏใ€็‰ˆๆœฌใ€่”็ณปๆ–นๅผ็ญ‰๏ผŒ่ฏท้˜…่ฏป [ๆ•™็จ‹ - ๅ…ƒๆ•ฐๆฎๅ’Œๆ–‡ๆกฃ URL](../tutorial/metadata.md){.internal-link target=_blank} ๆ–‡ๆกฃใ€‚
    
    ## OpenAPI ่‡ชๅฎšไน‰ URL
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Apr 22 23:41:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

          }
          return result
        }
    
        /**
         * Checks if `expected` and `observed` are equal when viewed as a set and headers are
         * deduped.
         *
         * TODO: See if duped headers should be preserved on decode and verify.
         */
        private fun assertSetEquals(
          message: String,
          expected: List<Header>,
          observed: List<Header>,
        ) {
          assertThat(LinkedHashSet(observed), message)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/api/admin/elevateword/ApiAdminElevatewordAction.java

            final PermissionHelper permissionHelper = ComponentUtil.getPermissionHelper();
            body.permissions = stream(entity.getPermissions()).get(stream -> stream.map(s -> permissionHelper.decode(s))
                    .filter(StringUtil::isNotBlank).distinct().collect(Collectors.joining("\n")));
            return asJson(new ApiResult.ApiConfigResponse().setting(body).status(ApiResult.Status.OK).result());
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

          if (uri.toString() != component.urlString("")) {
            fail("Encoding $component $codePoint using $encoding")
          }
          return
        }
    
        // If the URI has more escaping than the HttpURL, check that the decoded values still match.
        val uriEscaped = uriEscapedCodePoints.indexOf(codePointString) != -1
        if (uriEscaped) {
          if (uri.toString() == httpUrl.toString()) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java

         * @param passwordHashHex
         *            NT password hash, hex encoded
         */
        public NtlmNtHashAuthenticator ( String domain, String username, String passwordHashHex ) {
            this(domain, username, Hex.decode(passwordHashHex));
        }
    
    
        private NtlmNtHashAuthenticator ( byte[] passwordHash ) {
            super();
            this.ntHash = passwordHash;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 12:07:20 UTC 2020
    - 2.5K bytes
    - Viewed (0)
Back to top