1 // Copyright © 2019 650 Industries. All rights reserved. 2 3 #import <Foundation/Foundation.h> 4 #import <React/RCTMultipartStreamReader.h> 5 6 NS_ASSUME_NONNULL_BEGIN 7 8 /** 9 * Fork of {@link RCTMultipartStreamReader} that doesn't necessarily 10 * expect a preamble (first boundary is not necessarily preceded by CRLF). 11 */ 12 @interface EXUpdatesMultipartStreamReader : NSObject 13 14 - (instancetype)initWithInputStream:(NSInputStream *)stream boundary:(NSString *)boundary; 15 - (BOOL)readAllPartsWithCompletionCallback:(RCTMultipartCallback)callback; 16 17 @end 18 19 NS_ASSUME_NONNULL_END 20