HTTPFileResponse.h 425 B

1234567891011121314151617181920212223242526
  1. #import <Foundation/Foundation.h>
  2. #import "HTTPResponse.h"
  3. @class HTTPConnection;
  4. @interface HTTPFileResponse : NSObject <HTTPResponse>
  5. {
  6. HTTPConnection *connection;
  7. NSString *filePath;
  8. UInt64 fileLength;
  9. UInt64 fileOffset;
  10. BOOL aborted;
  11. int fileFD;
  12. void *buffer;
  13. NSUInteger bufferSize;
  14. }
  15. - (id)initWithFilePath:(NSString *)filePath forConnection:(HTTPConnection *)connection;
  16. - (NSString *)filePath;
  17. @end