THttpRawResponseStream.Write Method
Writes Count bytes from Buffer to the client, sending headers first if needed.
Remarks
When the response is chunked, small writes are cached until MinChunkSize is reached before an actual chunk is emitted.
Syntax
Unit: Sparkle.HttpServer.Response
function THttpRawResponseStream.Write(const Buffer: ; Count: Integer): Integer; overload; override;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | Buffer | The source buffer holding the bytes to send. | |
| Count | Integer | The number of bytes to send. |
Returns
The number of body bytes accepted for sending.