- Sort Score
- Result 10 results
- Languages All
Results 891 - 900 of 1,167 for Rewrite (0.06 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt
pos: Int, limit: Int, result: Buffer, ): Boolean { if (!string.requiresEncode(pos, limit)) { result.writeUtf8(string, pos, limit) return true } result.write(PREFIX) val input = string.codePoints(pos, limit) // Copy all the basic code points to the output. var b = 0 for (codePoint in input) { if (codePoint < INITIAL_N) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 03 03:04:50 UTC 2024 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/DocumentHelper.java
try (ByteArrayOutputStream baos = new ByteArrayOutputStream()) { try (GZIPOutputStream gos = new GZIPOutputStream(baos)) { gos.write(hash.getBytes(Constants.UTF_8)); } return SIMILAR_DOC_HASH_PREFIX + Base64.getUrlEncoder().withoutPadding().encodeToString(baos.toByteArray()); } catch (final IOException e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 12K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
assertFalse(source.wasStreamClosed()); StringWriter writer = new StringWriter(); char[] buf = new char[64]; int read; while ((read = reader.read(buf)) != -1) { writer.write(buf, 0, read); } reader.close(); writer.close(); assertTrue(source.wasStreamClosed()); assertEquals(STRING, writer.toString()); } public void testLines() throws IOException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 11.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java
} /* * Under Android, MyError propagates up and fails the test? * * TODO(b/218700094): Does this matter to prod users, or is it just a feature of our testing * environment? If the latter, maybe write a custom Executor that avoids failing the test when it * sees an Error? */ @AndroidIncompatible public void testTaskThrowsError() throws Exception { class MyError extends Error {}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/Dfs.java
* Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package jcifs.smb1.smb1; import java.util.*; import jcifs.smb1.Config; import jcifs.smb1.UniAddress;
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 11.7K bytes - Viewed (0) -
docs/lambda/README.md
# Transform all text in the original object to uppercase # You can replace it with your custom code based on your use case transformed_object = original_object.upper() # Write object back to S3 Object Lambda # response sends the transformed data # back to MinIO and then to the user resp = make_response(transformed_object, 200) resp.headers['x-amz-request-route'] = request_route
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Apr 04 19:15:28 UTC 2023 - 7.6K bytes - Viewed (0) -
docs/changelogs/changelog_1x.md
* Add URLStreamHandlerFactory support so that `URL.openConnection()` uses OkHttp. * Expose the transport ("http/1.1", "spdy/3", etc.) via magic request headers. Use `X-Android-Transports` to write the preferred transports and `X-Android-Selected-Transport` to read the negotiated transport. ## Version 1.0.2 _2013-05-11_ * Fix: Remove use of Java 6-only APIs.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 6.4K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt
.isEqualTo("/lookup?ct&dns=AAABAAABAAAAAAAABmdvb2dsZQNjb20AAAEAAQ") } private fun dnsResponse(s: String): MockResponse { return MockResponse.Builder() .body(Buffer().write(s.decodeHex())) .addHeader("content-type", "application/dns-message") .addHeader("content-length", s.length / 2) .build() } private fun buildLocalhost( bootstrapClient: OkHttpClient,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 11K bytes - Viewed (0) -
docs/en/docs/advanced/additional-responses.md
**FastAPI** will take that model, generate its JSON Schema and include it in the correct place in OpenAPI. For example, to declare another response with a status code `404` and a Pydantic model `Message`, you can write: {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *} /// note Keep in mind that you have to return the `JSONResponse` directly. /// /// info
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:07:07 UTC 2024 - 8.7K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
Create functions with a name that starts with `test_` (this is standard `pytest` conventions). Use the `TestClient` object the same way as you do with `httpx`. Write simple `assert` statements with the standard Python expressions that you need to check (again, standard `pytest`). ```Python hl_lines="2 12 15-18" {!../../docs_src/app_testing/tutorial001.py!} ``` /// tip
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 6.5K bytes - Viewed (0)