- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 628 for Rewrite (0.04 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt
val dataLength = 16384 // Write the mocking script. peer.sendFrame().settings(Settings()) peer.acceptFrame() // ACK peer.acceptFrame() // SYN_STREAM peer.sendFrame().headers(false, 3, headerEntries("b", "banana")) peer.sendFrame().data(false, 3, Buffer().write(ByteArray(dataLength)), dataLength) peer.sendFrame().data(false, 3, Buffer().write(ByteArray(dataLength)), dataLength)Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Jul 31 04:18:40 GMT 2025 - 75.5K bytes - Click Count (0) -
internal/ioutil/ioutil.go
// executes at least one write operation if it is closed. // // This can be useful within the context of HTTP. At least // one write operation must happen to send the HTTP headers // to the peer. type WriteOnCloser struct { io.Writer hasWritten bool } func (w *WriteOnCloser) Write(p []byte) (int, error) { w.hasWritten = true return w.Writer.Write(p) }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 11.1K bytes - Click Count (0) -
docs/contribute/concurrency.md
### Threads #### Application's calling thread The application-layer must block on writing I/O. We can't return from a write until we've pushed its bytes onto the socket. Otherwise, if the write fails we are unable to deliver its IOException to the application. We would have told the application layer that the write succeeded, but it didn't!
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Feb 06 16:35:36 GMT 2022 - 7K bytes - Click Count (0) -
compat/maven-toolchain-model/src/main/java/org/apache/maven/toolchain/model/io/xpp3/MavenToolchainsXpp3Writer.java
} /** * Method write. * * @param writer a writer object. * @param persistedToolchains a persistedToolchains object. * @throws IOException java.io.IOException if any. */ public void write(Writer writer, PersistedToolchains persistedToolchains) throws IOException { try { delegate.write(writer, persistedToolchains.getDelegate());Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sat May 31 10:30:45 GMT 2025 - 2.7K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/MavenMetadata.java
} } private void write(Path metadataPath, Metadata metadata) throws RepositoryException { try { Files.createDirectories(metadataPath.getParent()); try (OutputStream output = Files.newOutputStream(metadataPath)) { new MetadataStaxWriter().write(output, metadata.getDelegate()); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 4.2K bytes - Click Count (0) -
cmd/metacache-set_gen.go
func (z *listPathOptions) EncodeMsg(en *msgp.Writer) (err error) { // map header, size 19 // write "ID" err = en.Append(0xde, 0x0, 0x13, 0xa2, 0x49, 0x44) if err != nil { return } err = en.WriteString(z.ID) if err != nil { err = msgp.WrapError(err, "ID") return } // write "Bucket" err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) if err != nil { return }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 13.8K bytes - Click Count (0) -
compat/maven-settings-builder/src/main/java/org/apache/maven/settings/io/DefaultSettingsWriter.java
@Override public void write(File output, Map<String, Object> options, Settings settings) throws IOException { Objects.requireNonNull(output, "output cannot be null"); Objects.requireNonNull(settings, "settings cannot be null"); output.getParentFile().mkdirs(); write(Files.newOutputStream(output.toPath()), options, settings); } @OverrideCreated: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.8K bytes - Click Count (0) -
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py
tokenUrl="/api/oauth/token", scopes={"read": "Read access", "write": "Write access"}, ) async def get_token(token: Annotated[str, Depends(oauth2_scheme)]) -> str: return token app = FastAPI(dependencies=[Depends(get_token)]) @app.get("/admin", dependencies=[Security(get_token, scopes=["read", "write"])]) async def read_admin(): return {"message": "Admin Access"}Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/SourceSinkFactories.java
public ByteSource createSource(byte[] bytes) throws IOException { checkNotNull(bytes); File file = createFile(); OutputStream out = new FileOutputStream(file); try { out.write(bytes); } finally { out.close(); } return Files.asByteSource(file); } @Override public byte[] getExpected(byte[] bytes) { return checkNotNull(bytes);
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Jul 16 17:42:14 GMT 2025 - 17.9K bytes - Click Count (0) -
.github/workflows/update-test-buckets.yml
name: Auto update test buckets on: schedule: - cron: '42 2 * * 1' # Every monday 2:42am UTC workflow_dispatch: permissions: contents: write id-token: write pull-requests: write jobs: update-test-buckets: runs-on: ubuntu-latest if: github.repository == 'gradle/gradle' steps: - name: Checkout repository uses: actions/checkout@v6 - name: configure aws credentialsCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Dec 09 22:14:16 GMT 2025 - 2.4K bytes - Click Count (0)