I have looked into ways to get response header from UIWebview response.
This SO question discusses it. But I am unsure if this is allowed by apple. I will have a webview sho
func webViewDidFinishLoad(_ webView: UIWebView) {
let headers = webView.request?.allHTTPHeaderFields
for (key,value) in headers! {
print("key \(key) value \(value)")
}
}