API Reference for chrome.devtools.network

一个人想着一个人 提交于 2019-12-13 20:27:17

问题


for my daily work I have to look a lot at network requests made by the browser and for a long while I used firebug to do that. Firebug had a really cool at pleasent and clean way to show XHR requests in the console. The Firebug DevTools do not offer that same clear GUI and it is a lot of scrolling. The chrome devtools are better but also do not offer the same sort of firebug convenience.

So I want to write a extension for that myself to perfectly suit my needs but so far I am a little bit confused about the API reference that I found. https://developer.chrome.com/extensions/devtools_network#method-getHAR

Maybe I am bit spoiled from C++ API references but that can't be the whole documentation of that API?

According to that page the whole network API consists of three functions? I mean where has to be more somewhere but I was not able to found it on the google page hopefully somebody can point the way or enlighten me about that.

For example I added a chrome.devtools.network.onRequestFinished.addListener which gives me request object but I was only able to get the body of the request how do you get the header information?

On that same page is a link to: http://www.softwareishard.com/blog/har-12-spec/#request and I thought: "Ok maybe that is the full documentation but it is only a blog post and the request object has as far as I can tell no request.headers variable.

I hope somebody can point the way.

Regards Ruvi

来源:https://stackoverflow.com/questions/48251120/api-reference-for-chrome-devtools-network

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!