- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for Flush (0.08 sec)
-
internal/http/flush.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package http import "net/http" // Flush the ResponseWriter. func Flush(w http.ResponseWriter) { if f, ok := w.(http.Flusher); ok { f.Flush() }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 914 bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/io/Smb2FlushRequest.java
/** * SMB2 Flush request message. * * This command is used to flush buffered data to the * underlying storage device for a given file handle. * * @author mbechler */ public class Smb2FlushRequest extends ServerMessageBlock2Request<Smb2FlushResponse> implements RequestWithFileId { private byte[] fileId; /** * Constructs an SMB2 flush request
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestCharSink.java
public Writer openStream() throws IOException { // using TestByteSink's output stream to get option behavior, so flush to it on every write return new FilterWriter(new OutputStreamWriter(byteSink.openStream(), UTF_8)) { @Override public void write(int c) throws IOException { super.write(c); flush(); } @Override public void write(char[] cbuf, int off, int len) throws IOException {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 2.1K bytes - Viewed (0) -
src/bufio/example_test.go
fmt.Fprint(w, "Hello, ") fmt.Fprint(w, "world!") w.Flush() // Don't forget to flush! // Output: Hello, world! } func ExampleWriter_AvailableBuffer() { w := bufio.NewWriter(os.Stdout) for _, i := range []int64{1, 2, 3, 4} { b := w.AvailableBuffer() b = strconv.AppendInt(b, i, 10) b = append(b, ' ') w.Write(b) } w.Flush() // Output: 1 2 3 4 }
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 5.5K bytes - Viewed (0) -
internal/http/response-recorder.go
lrw.writeHeaders(&lrw.headers, code, lrw.Header()) lrw.headersLogged = true lrw.ResponseWriter.WriteHeader(code) } } // Flush - Calls the underlying Flush. func (lrw *ResponseRecorder) Flush() { if flusher, ok := lrw.ResponseWriter.(http.Flusher); ok { flusher.Flush() } } // Size - returns the number of bytes written func (lrw *ResponseRecorder) Size() int { return lrw.bytesWritten }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/io/AppendableWriter.java
checkNotClosed(); // tricky: append takes start, end pair... target.append(str, off, off + len); } @Override public void flush() throws IOException { checkNotClosed(); if (target instanceof Flushable) { ((Flushable) target).flush(); } } @Override public void close() throws IOException { this.closed = true; if (target instanceof Closeable) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:37:28 UTC 2025 - 3.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/AppendableWriterTest.java
return this; } @Override public Appendable append(CharSequence csq, int start, int end) { result.append(csq, start, end); return this; } @Override public void flush() { flushed = true; } @Override public void close() { closed = true; } } public void testWriteMethods() throws IOException {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 3.3K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/OutputStreamUtil.java
} } /** * Flushes the {@link OutputStream}. * * @param out the output stream */ public static void flush(final OutputStream out) { if (out == null) { return; } try { out.flush(); } catch (final IOException e) { throw new IORuntimeException(e); } }Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 1.9K bytes - Viewed (0) -
cmd/listen-notification-handlers.go
} if len(mergeCh) == 0 { // Flush if nothing is queued xhttp.Flush(w) } grid.PutByteBuffer(ev) case <-emptyEventTicker: if err := enc.Encode(struct{ Records []event.Event }{}); err != nil { return } xhttp.Flush(w) case <-keepAliveTicker: if _, err := w.Write([]byte(" ")); err != nil { return } xhttp.Flush(w) case <-ctx.Done(): return }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 6K bytes - Viewed (0) -
android/guava/src/com/google/common/io/CountingOutputStream.java
out.write(b); count++; } // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior: // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream. // It should flush itself if necessary. @Override public void close() throws IOException { out.close(); }
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 1.9K bytes - Viewed (0)