//
//  NXOAuth2PostBodyStream.h
//  OAuth2Client
//
//  Created by Ullrich Schäfer on 27.08.10.
//
//  Copyright 2010 nxtbgthng. All rights reserved.
//
//  Licenced under the new BSD-licence.
//  See README.md in this repository for
//  the full licence.
//


#import <Foundation/Foundation.h>


@interface NXOAuth2PostBodyStream : NSInputStream {
    NSString        *boundary;
    
    NSArray            *contentStreams;
    NSInputStream    *currentStream;    // assigned (is retained by contentStreams)
    NSUInteger        streamIndex;
    
    unsigned long long numBytesTotal;
}

- (instancetype)initWithParameters:(NSDictionary *)postParameters;

@property (readonly) NSString *boundary;
@property (readonly) unsigned long long length;

@end


