Internet Direct (Indy) Version 9.0.2 Beta
|
function ServeFile(AThread: TIdPeerThread; ResponseInfo: TIdHTTPResponseInfo; aFile: TFileName): cardinal; virtual;
ServeFile uses MIMETable to determine the content type for the requested file.
ServeFile uses AResponseInfo to write the HTTP response headers, and writes the content of the file in AFile to the peer thread Connection.