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

Popular posts from this blog

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

Why does PHP consider 0 to be equal to a string? -

formula - R: how to pass in a reference to the variable in glm or lm? -