Skip to content

Instantly share code, notes, and snippets.

@iosdeveloper
iosdeveloper / MBDictionary
Created August 5, 2011 12:57
NSDictionary category which sends a HEAD request and returns the header fields as dictionary
@interface NSDictionary (MBDictionary)
+ (id)dictionaryWithHeadOfURL:(NSURL *)inURL;
@end
@implementation NSDictionary (MBDictionary)
+ (id)dictionaryWithHeadOfURL:(NSURL *)inURL {
NSDictionary *theResult = nil;