Closed NikKovIos closed 6 years ago
You can use request.responseString
in errorBlock.
Thx!
Note: Capturing 'request' strongly in this block is likely to lead to a retain cycle
so use
__weak typeof(request) weakRequest = request;
weakRequest.responseString
in block.
Thumbs up if helped.
When it is an error, we use
request.errorBlock = ^(NSError *error) {}
But what if i need to fetch a response body, when it is an error? What should i do?