printing - WKWebView Print Response Headers in Swift 2 -
how can see response headers wkwebview loadrequest ?
eg
let url = nsurl(string: "http://www.anywebsite.com")! let urlrequest = nsurlrequest(url: url) wkwebview.loadrequest(urlrequest) then print headers in response.
you have assign wkwebview.navigationdelegate.
in navigationdelegate's methods provide wknavigationresponse, can cast navigationresponse.response nshttpurlresponse access navigationresponse.response.allheaderfields.
Comments
Post a Comment