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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -