Added -hasByteRange API

This commit is contained in:
Pierre-Olivier Latour
2014-04-07 19:29:04 -07:00
parent c51f9ad7d9
commit fb08e77c0c
4 changed files with 10 additions and 1 deletions
+1
View File
@@ -44,4 +44,5 @@
@property(nonatomic, readonly) NSRange byteRange; // Automatically parsed from headers ([NSNotFound, 0] if request has no "Range" header, [offset, length] for byte range from beginning or [NSNotFound, -bytes] from end)
- (id)initWithMethod:(NSString*)method url:(NSURL*)url headers:(NSDictionary*)headers path:(NSString*)path query:(NSDictionary*)query;
- (BOOL)hasBody; // Convenience method
- (BOOL)hasByteRange; // Convenience method that checks "byteRange"
@end