- Sort Score
- Result 10 results
- Languages All
Results 291 - 300 of 1,371 for Rewrite (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/io/FaultyFileSystem.kt
inner class FaultySink( sink: Sink, private val file: Path, ) : ForwardingSink(sink) { override fun write( source: Buffer, byteCount: Long, ) { if (writeFaults.contains(file)) { throw IOException("boom!") } else { super.write(source, byteCount) } } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.8K bytes - Viewed (0) -
cmd/crossdomain-xml-handler.go
if globalServerCtxt.CrossDomainXML != "" { cxml = globalServerCtxt.CrossDomainXML } // Look for 'crossdomain.xml' in the incoming request. if r.URL.Path == crossDomainXMLEntity { // Write the standard cross domain policy xml. w.Write([]byte(cxml)) // Request completed, no need to serve to other handlers. return } h.ServeHTTP(w, r) })Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Mar 18 06:42:40 UTC 2024 - 2.2K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/RewriteResponseCacheControl.java
import okhttp3.Cache; import okhttp3.Interceptor; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; public final class RewriteResponseCacheControl { /** Dangerous interceptor that rewrites the server's cache-control header. */ private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = chain -> { Response originalResponse = chain.proceed(chain.request()); return originalResponse.newBuilder()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Jan 12 03:31:36 UTC 2019 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.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.dcerpc; import java.io.IOException; import java.net.MalformedURLException;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java
* the underlying wire‑format helpers. */ @ExtendWith(MockitoExtension.class) class NtTransQuerySecurityDescTest { /** * Helper that mimics the write logic used by * {@link NtTransQuerySecurityDesc#writeParametersWireFormat(byte[], int)}. */ private static byte[] expectedParameters(int fid, int securityInformation) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
byte[] hdr = new byte[64]; // SMB2 header is 64 bytes System.arraycopy(SMBUtil.SMB2_HEADER, 0, hdr, 0, 64); // Write Status (little-endian) at offset 8 in the SMB2 header SMBUtil.writeInt4(status, hdr, 8); // Write Command = SMB2_IOCTL (0x000B) at offset 12 SMBUtil.writeInt2(0x000B, hdr, 12); // Mark as server response to be realistic (optional)
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
mvnw.cmd
"If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^ " Write-Error 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^ " Write-Error 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^ " Write-Error 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^ " exit 1;"^
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Oct 14 22:24:15 UTC 2024 - 7.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java
byte[] buffer = new byte[256]; int written = trans2QueryPathInfo.writeSetupWireFormat(buffer, 0); // Should write 2 bytes: subcommand and 0x00 assertEquals(2, written); assertEquals(SmbComTransaction.TRANS2_QUERY_PATH_INFORMATION, buffer[0]); assertEquals(0x00, buffer[1]); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.4K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* file attributes such as ACLs but it does copy regular attributes as * well as create and last write times. This method is almost twice as * efficient as manually copying as it employs an additional write * thread to read and write data concurrently. * <br> * It is not possible (nor meaningful) to copy entire workgroups or * servers. * * @param destRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java
int alignedSize = (expectedSize + 7) & ~7; // size8 alignment assertEquals(alignedSize, size); } @Test @DisplayName("Should write correct bytes to wire format with session binding") void testWriteBytesWireFormatWithSessionBinding() throws Exception { // Given request.setSessionBinding(true); byte[] buffer = new byte[512];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21.2K bytes - Viewed (0)