mirror of
				https://github.com/viq/NewsBlur.git
				synced 2025-11-01 09:09:16 +00:00 
			
		
		
		
	
		
			
	
	
		
			27 lines
		
	
	
	
		
			969 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
	
		
			969 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//  ASIInputStream.h
							 | 
						||
| 
								 | 
							
								//  Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								//  Created by Ben Copsey on 10/08/2009.
							 | 
						||
| 
								 | 
							
								//  Copyright 2009 All-Seeing Interactive. All rights reserved.
							 | 
						||
| 
								 | 
							
								//
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#import <Foundation/Foundation.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@class ASIHTTPRequest;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								// This is a wrapper for NSInputStream that pretends to be an NSInputStream itself
							 | 
						||
| 
								 | 
							
								// Subclassing NSInputStream seems to be tricky, and may involve overriding undocumented methods, so we'll cheat instead.
							 | 
						||
| 
								 | 
							
								// It is used by ASIHTTPRequest whenever we have a request body, and handles measuring and throttling the bandwidth used for uploading
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@interface ASIInputStream : NSObject {
							 | 
						||
| 
								 | 
							
									NSInputStream *stream;
							 | 
						||
| 
								 | 
							
									ASIHTTPRequest *request;
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								+ (id)inputStreamWithFileAtPath:(NSString *)path request:(ASIHTTPRequest *)request;
							 | 
						||
| 
								 | 
							
								+ (id)inputStreamWithData:(NSData *)data request:(ASIHTTPRequest *)request;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@property (retain, nonatomic) NSInputStream *stream;
							 | 
						||
| 
								 | 
							
								@property (assign, nonatomic) ASIHTTPRequest *request;
							 | 
						||
| 
								 | 
							
								@end
							 |