Use search bar to show only folder objects that start with given filter
[pithos-ios] / Classes / ASIInputStream.h
1 //
2 //  ASIInputStream.h
3 //  Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
4 //
5 //  Created by Ben Copsey on 10/08/2009.
6 //  Copyright 2009 All-Seeing Interactive. All rights reserved.
7 //
8
9 #import <Foundation/Foundation.h>
10
11 @class ASIHTTPRequest;
12
13 // This is a wrapper for NSInputStream that pretends to be an NSInputStream itself
14 // Subclassing NSInputStream seems to be tricky, and may involve overriding undocumented methods, so we'll cheat instead.
15 // It is used by ASIHTTPRequest whenever we have a request body, and handles measuring and throttling the bandwidth used for uploading
16
17 @interface ASIInputStream : NSObject {
18         NSInputStream *stream;
19         ASIHTTPRequest *request;
20 }
21 + (id)inputStreamWithFileAtPath:(NSString *)path request:(ASIHTTPRequest *)request;
22 + (id)inputStreamWithData:(NSData *)data request:(ASIHTTPRequest *)request;
23
24 @property (retain, nonatomic) NSInputStream *stream;
25 @property (assign, nonatomic) ASIHTTPRequest *request;
26 @end