2017-02-28 4 views

답변

1

이렇게하면 RKObjectRequestOperation에서 응답 헤더를 얻을 수 있습니다.

if let operation = operation, let headers = operation.httpRequestOperation.response.allHeaderFields as? [String:Any] { 
    print(headers)// Now use subscript with headers dictionary to get your token value 
} 
+0

'RKObjectRequestOperation 유형의 값 없음'회원 응답 없음 – markhorrocks

+0

@markhorrocks 편집 된 답변을 확인하십시오. –

+0

그것은'operation.httpRequestOperation'을 좋아했습니다 – markhorrocks

관련 문제