- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 99 for converting (0.12 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt
val cookie = cookies[0] assertThat(cookie.name).isEqualTo("a") assertThat(cookie.value).isEqualTo("android") assertThat(cookie.commentURL).isNull() assertThat(cookie.discard).isFalse() // Converting to a fixed date can cause rounding! assertThat(cookie.maxAge.toDouble()).isCloseTo(60.0, 5.0) assertThat(cookie.path).isEqualTo("/path") assertThat(cookie.secure).isTrue() } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13K bytes - Viewed (0) -
docs/en/docs/alternatives.md
the main features needed by API systems is data "<abbr title="also called marshalling, conversion">serialization</abbr>" which is taking data from the code (Python) and converting it into something that can be sent through the network. For example, converting an object containing data from a database into a JSON object. Converting `datetime` objects into strings, etc. Another big feature needed by APIs is data validation, making sure that the data is valid, given certain parameters. For...
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 23.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt
fun hostContainsOnlyStrippedCharacters() { val url = "http://>/".toHttpUrl() assertThat(url.host).isEqualTo(">") assertThat(url.toUri().host).isNull() } /** * Strip unexpected characters when converting to URI (which is more strict). * https://github.com/square/okhttp/issues/5667 */ @Test fun hostToUriStripsCharacters() { val httpUrl = "http://example\".com/".toHttpUrl()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/SIDTest.java
assertEquals("BUILTIN", sid.getDomainName()); assertEquals("Administrators", sid.getAccountName()); assertEquals(adminSidString, sid.toString()); } /** * Test converting a SID to a byte array. */ @Test void testToByteArray() { SID sid = new SID(adminSidBytes, 0); assertArrayEquals(adminSidBytes, sid.toByteArray()); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
void testNullMechanisms() { NegTokenInit init = new NegTokenInit(null, 0, null, null); assertNull(init.getMechanisms()); // Should not throw when converting to byte array assertDoesNotThrow(() -> init.toByteArray()); } @Test @DisplayName("Large MIC values are handled correctly") void testLargeMicValue() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
consistent with the length of the response body. * Fix: Don't crash when converting a `HttpUrl` instance with an unresolvable hostname to a URI. The new behavior strips invalid characters like `"` and `{` from the hostname before converting. * Fix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Apr 17 13:25:31 UTC 2024 - 25.2K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Strings.java
* use {@link String#isEmpty()} instead of this method, and you won't need special null-safe forms * of methods like {@link String#toUpperCase} either. Or, if you'd like to normalize "in the other * direction," converting empty strings to {@code null}, you can use {@link #emptyToNull}. * * @param string a string reference to check * @return {@code true} if the string is null or is the empty string */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 27 17:53:41 UTC 2025 - 12.2K bytes - Viewed (0) -
docs/en/docs/index.md
* Path parameters. * Query parameters. * Cookies. * Headers. * Forms. * Files. * <abbr title="also known as: serialization, parsing, marshalling">Conversion</abbr> of output data: converting from Python data and types to network data (as JSON): * Convert Python types (`str`, `int`, `float`, `bool`, `list`, etc). * `datetime` objects. * `UUID` objects. * Database models.
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Sun Aug 31 10:49:48 UTC 2025 - 21.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/BaseEncodingTest.java
} } } }, /* * This one comes last to work around b/367716565. (One *possible* alternative would be to not * declare any methods in this enum, converting assertFailsToDecode into a static method that is * implemented with a `switch`. I haven't tested that.) */ @GwtIncompatible // decodingStream(Reader) DECODING_STREAM { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 24.7K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
* 2^64 + x}). The methods for which signedness is not an issue are in {@link Longs}, as well as * signed versions of methods for which signedness is an issue. * * <p>In addition, this class provides several static methods for converting a {@code long} to a * {@code String} and a {@code String} to a {@code long} that treat the {@code long} as an unsigned * number. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 17.8K bytes - Viewed (0)