ObjFW  Check-in [c0616f3c1e]

Overview
Comment:OFHTTPResponse: Include self in -[description].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: c0616f3c1e23c95be13394b1b19b14ab6dbbc0ff28706770544cef1cadac380d
User & Date: js on 2013-08-15 17:43:05
Other Links: manifest | tags
Context
2013-08-15
17:55
OFZIPArchiveEntry: Add -[description]. check-in: fb8b5e652d user: js tags: trunk
17:43
OFHTTPResponse: Include self in -[description]. check-in: c0616f3c1e user: js tags: trunk
17:40
OFHTTPRequest: Conform to OFCopying. check-in: 7efd17523d user: js tags: trunk
Changes

Modified src/OFHTTPResponse.m from [e6dfde16d7] to [b23fb7a66d].

163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
	OFString *indentedHeaders, *ret;

	indentedHeaders = [[_headers description]
	    stringByReplacingOccurrencesOfString: @"\n"
				      withString: @"\n\t"];

	ret = [[OFString alloc] initWithFormat:
	    @"<%@:\n"
	    @"\tStatus code = %d\n"
	    @"\tHeaders = %@\n"
	    @">",
	    [self class], _statusCode, indentedHeaders];

	objc_autoreleasePoolPop(pool);

	return [ret autorelease];
}
@end







|



|






163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
	OFString *indentedHeaders, *ret;

	indentedHeaders = [[_headers description]
	    stringByReplacingOccurrencesOfString: @"\n"
				      withString: @"\n\t"];

	ret = [[OFString alloc] initWithFormat:
	    @"<%@: %p\n"
	    @"\tStatus code = %d\n"
	    @"\tHeaders = %@\n"
	    @">",
	    [self class], self, _statusCode, indentedHeaders];

	objc_autoreleasePoolPop(pool);

	return [ret autorelease];
}
@end