NSData+RACSupport.h 536 B

1234567891011121314151617181920212223
  1. //
  2. // NSData+RACSupport.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Josh Abernathy on 5/11/12.
  6. // Copyright (c) 2012 GitHub, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RACScheduler;
  10. @class RACSignal;
  11. @interface NSData (RACSupport)
  12. // Read the data at the URL using -[NSData initWithContentsOfURL:options:error:].
  13. // Sends the data or the error.
  14. //
  15. // scheduler - cannot be nil.
  16. + (RACSignal *)rac_readContentsOfURL:(NSURL *)URL options:(NSDataReadingOptions)options scheduler:(RACScheduler *)scheduler;
  17. @end