1.1 --- a/BLIP/BLIPRequest.m Sun Jul 13 10:42:50 2008 -0700
1.2 +++ b/BLIP/BLIPRequest.m Sun May 24 15:03:39 2009 -0700
1.3 @@ -44,12 +44,27 @@
1.4 return [[[self alloc] _initWithConnection: nil body: body properties: nil] autorelease];
1.5 }
1.6
1.7 ++ (BLIPRequest*) requestWithBodyString: (NSString*)bodyString {
1.8 + return [self requestWithBody: [bodyString dataUsingEncoding: NSUTF8StringEncoding]];
1.9 +}
1.10 +
1.11 + (BLIPRequest*) requestWithBody: (NSData*)body
1.12 properties: (NSDictionary*)properties
1.13 {
1.14 return [[[self alloc] _initWithConnection: nil body: body properties: properties] autorelease];
1.15 }
1.16
1.17 +- (id)mutableCopyWithZone:(NSZone *)zone
1.18 +{
1.19 + Assert(self.complete);
1.20 + BLIPRequest *copy = [[self class] requestWithBody: self.body
1.21 + properties: self.properties.allProperties];
1.22 + copy.compressed = self.compressed;
1.23 + copy.urgent = self.urgent;
1.24 + copy.noReply = self.noReply;
1.25 + return [copy retain];
1.26 +}
1.27 +
1.28
1.29 - (void) dealloc
1.30 {