diff -r 8b883753394a -r 6c3b5372a307 BLIP/BLIPRequest.m --- a/BLIP/BLIPRequest.m Sun Jul 13 10:42:50 2008 -0700 +++ b/BLIP/BLIPRequest.m Thu Jul 02 19:58:11 2009 -0700 @@ -44,12 +44,27 @@ return [[[self alloc] _initWithConnection: nil body: body properties: nil] autorelease]; } ++ (BLIPRequest*) requestWithBodyString: (NSString*)bodyString { + return [self requestWithBody: [bodyString dataUsingEncoding: NSUTF8StringEncoding]]; +} + + (BLIPRequest*) requestWithBody: (NSData*)body properties: (NSDictionary*)properties { return [[[self alloc] _initWithConnection: nil body: body properties: properties] autorelease]; } +- (id)mutableCopyWithZone:(NSZone *)zone +{ + Assert(self.complete); + BLIPRequest *copy = [[self class] requestWithBody: self.body + properties: self.properties.allProperties]; + copy.compressed = self.compressed; + copy.urgent = self.urgent; + copy.noReply = self.noReply; + return [copy retain]; +} + - (void) dealloc {