Method ReturnFile
ReturnFile(HttpListenerContext, string, int)
Sends a file to the connected HTTP client
Declaration
protected virtual void ReturnFile(HttpListenerContext context, string filePath, int readBufferSize = 65536)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpListenerContext | context | The HttpListenerContext |
| string | filePath | The filepath requested |
| int | readBufferSize | Buffer size to use |