Differences From Artifact [1f63af9bb9]:
- File src/OFHTTPClient.m — part of check-in [845273bf5d] at 2017-09-23 18:43:03 on branch trunk — OFHTTPClient: Factor out server header handling (user: js, size: 18447) [annotate] [blame] [check-ins using]
To Artifact [aa3131b9d1]:
- File
src/OFHTTPClient.m
— part of check-in
[d3d4d34dad]
at
2017-09-23 19:02:10
on branch trunk
— OFHTTPClient: Add request performed callback
This is in preparation for making OFHTTPClient asynchronous. (user: js, size: 18637) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
729 730 731 732 733 734 735 736 737 738 739 740 741 742 |
objc_autoreleasePoolPop(pool);
[response autorelease];
if (status / 100 != 2)
@throw [OFHTTPRequestFailedException
exceptionWithRequest: request
response: response];
return response;
}
- (void)close
{
[_socket close];
| > > > > > > | 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 |
objc_autoreleasePoolPop(pool);
[response autorelease];
if (status / 100 != 2)
@throw [OFHTTPRequestFailedException
exceptionWithRequest: request
response: response];
if ([_delegate respondsToSelector: @selector(client:didPerformRequest:
response:)])
[_delegate client: self
didPerformRequest: request
response: response];
return response;
}
- (void)close
{
[_socket close];
|
| ︙ | ︙ |