Ignite Tools
Shared/Airship/External/UA_asi-http-request/UA_ASIInputStream.h
00001 //
00002 //  UA_ASIInputStream.h
00003 //  Part of UA_ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
00004 //
00005 //  Created by Ben Copsey on 10/08/2009.
00006 //  Copyright 2009 All-Seeing Interactive. All rights reserved.
00007 //
00008 
00009 #import <Foundation/Foundation.h>
00010 
00011 @class UA_ASIHTTPRequest;
00012 
00013 // This is a wrapper for NSInputStream that pretends to be an NSInputStream itself
00014 // Subclassing NSInputStream seems to be tricky, and may involve overriding undocumented methods, so we'll cheat instead.
00015 // It is used by UA_ASIHTTPRequest whenever we have a request body, and handles measuring and throttling the bandwidth used for uploading
00016 
00017 @interface UA_ASIInputStream : NSObject {
00018         NSInputStream *stream;
00019         UA_ASIHTTPRequest *request;
00020 }
00021 + (id)inputStreamWithFileAtPath:(NSString *)path request:(UA_ASIHTTPRequest *)request;
00022 + (id)inputStreamWithData:(NSData *)data request:(UA_ASIHTTPRequest *)request;
00023 
00024 @property (retain, nonatomic) NSInputStream *stream;
00025 @property (assign, nonatomic) UA_ASIHTTPRequest *request;
00026 @end
 All Classes Functions Variables Properties