URLSession
-
func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { let urlCredential = URLCredential(trust: challenge.protectionSpace.serverTrust!) completionHandler(.useCredential, urlCredential) }
[Swift] URLSession https 인증서 신뢰func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { let urlCredential = URLCredential(trust: challenge.protectionSpace.serverTrust!) completionHandler(.useCredential, urlCredential) }
2022.11.20 -
URLSession - URL이 가리키는 EndPoint로 Data를 다운받거나 업로드하기 위한 API 제공 - 앱이 실행하지 않고 있거나, 앱이 일시정지 상태 일때도 백그라운드 다운로드를 수행할 수 있도록 해줌 - 하나 이상의 Session을 만들고 각 Session은 관련 데이터 전송 작업 그룹을 조절 - 기본적으로 사용자의 시스템 환경 설정에 구성된 프록시 서버 및 SOCKS 게이트웨이에 대한 투명한 지원을 통해 데이터, 파일, FTP, HTTP 및 HTTPS URL 스키마를 지원 - 또한 HTTP/1.1, SPDY, HTTP/2 프로토콜을 지원 → ALPN이나 NPN 둘 중 하나 지원하는 서버를 필요로 함 URLSession Configuration - 하나의 URLSession에 속한 task들..
[Swift] URLSessionURLSession - URL이 가리키는 EndPoint로 Data를 다운받거나 업로드하기 위한 API 제공 - 앱이 실행하지 않고 있거나, 앱이 일시정지 상태 일때도 백그라운드 다운로드를 수행할 수 있도록 해줌 - 하나 이상의 Session을 만들고 각 Session은 관련 데이터 전송 작업 그룹을 조절 - 기본적으로 사용자의 시스템 환경 설정에 구성된 프록시 서버 및 SOCKS 게이트웨이에 대한 투명한 지원을 통해 데이터, 파일, FTP, HTTP 및 HTTPS URL 스키마를 지원 - 또한 HTTP/1.1, SPDY, HTTP/2 프로토콜을 지원 → ALPN이나 NPN 둘 중 하나 지원하는 서버를 필요로 함 URLSession Configuration - 하나의 URLSession에 속한 task들..
2022.11.17