Differences From Artifact [fa66100730]:
- File
src/OFHTTPRequest.m
— part of check-in
[13ee56edf3]
at
2014-06-21 21:43:43
on branch trunk
— Move all macros from OFObject.h to macros.h
This means that OFObject.h imports macros.h now, making it unnecessary
to manually import macros.h in almost every file. And while at it, also
import autorelease.h in OFObject.h, so that this doesn't need to be
manually imported in almost every file as well. (user: js, size: 6776) [annotate] [blame] [check-ins using]
To Artifact [1713156fde]:
- File src/OFHTTPRequest.m — part of check-in [5109a3e7e4] at 2014-07-05 09:14:46 on branch trunk — OFHTTPRequest: Add -[setEntityFromString:] (user: js, size: 7270) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
258 259 260 261 262 263 264 265 266 267 268 269 270 271 | OF_GETTER(_headers, true) } - (void)setEntity: (OFDataArray*)entity { OF_SETTER(_entity, entity, true, 0) } - (OFDataArray*)entity { OF_GETTER(_entity, true) } - (void)setRemoteAddress: (OFString*)remoteAddress | > > > > > > > > > > > > > > > > > > > | 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | OF_GETTER(_headers, true) } - (void)setEntity: (OFDataArray*)entity { OF_SETTER(_entity, entity, true, 0) } - (void)setEntityFromString: (OFString*)string { [self setEntityFromString: string encoding: OF_STRING_ENCODING_UTF_8]; } - (void)setEntityFromString: (OFString*)string encoding: (of_string_encoding_t)encoding { void *pool = objc_autoreleasePoolPush(); OFDataArray *entity = [OFDataArray dataArray]; [entity addItems: [string cStringWithEncoding: encoding] count: [string cStringLengthWithEncoding: encoding]]; [self setEntity: entity]; objc_autoreleasePoolPop(pool); } - (OFDataArray*)entity { OF_GETTER(_entity, true) } - (void)setRemoteAddress: (OFString*)remoteAddress |
︙ | ︙ |