2007-03-02 01:36:52 +00:00
|
|
|
//
|
|
|
|
// HTTPSource.h
|
|
|
|
// HTTPSource
|
|
|
|
//
|
|
|
|
// Created by Vincent Spader on 3/1/07.
|
|
|
|
// Copyright 2007 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
#import "Plugin.h"
|
|
|
|
|
2009-03-07 09:25:13 +00:00
|
|
|
@class HTTPConnection;
|
|
|
|
|
2020-03-08 00:08:47 +00:00
|
|
|
@interface HTTPSource : NSObject <CogSource, NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSessionDataDelegate>
|
2007-03-02 01:36:52 +00:00
|
|
|
{
|
2020-03-08 00:08:47 +00:00
|
|
|
NSOperationQueue * queue;
|
|
|
|
|
|
|
|
NSURL * URL;
|
|
|
|
NSURLSession * session;
|
|
|
|
NSURLSessionDataTask * task;
|
|
|
|
|
2020-03-10 08:56:59 +00:00
|
|
|
Boolean didReceiveResponse;
|
|
|
|
Boolean didReceiveRandomData;
|
|
|
|
Boolean didComplete;
|
|
|
|
|
2020-03-09 03:13:46 +00:00
|
|
|
Boolean redirected;
|
|
|
|
NSMutableArray * redirectURLs;
|
2020-03-08 00:08:47 +00:00
|
|
|
|
2020-03-10 08:56:59 +00:00
|
|
|
NSMutableData * bufferedData;
|
2007-10-14 17:31:20 +00:00
|
|
|
|
2020-03-08 00:08:47 +00:00
|
|
|
long _bytesBuffered;
|
2009-03-05 06:29:47 +00:00
|
|
|
long _byteCount;
|
2007-03-04 00:17:05 +00:00
|
|
|
|
2007-10-14 17:31:20 +00:00
|
|
|
NSString *_mimeType;
|
2007-03-02 01:36:52 +00:00
|
|
|
}
|
|
|
|
|
2009-03-07 09:25:13 +00:00
|
|
|
|
|
|
|
|
2007-03-02 01:36:52 +00:00
|
|
|
@end
|