Documentation ¶
Overview ¶
Package bufcp provides functions for copying data from a reader to a writer with explicit control over buffer size and flushing of buffered data after each write. This package is particularly useful when working with the CreateWriteStream function of FastHTTP's Response, which returns a bufio.Writer. By flushing the writer after each write, data is sent to the client immediately, allowing the server to start sending large responses without having to buffer them entirely in memory first. This can help manage memory usage when working with large files or streams of data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.