Skip to content Skip to sidebar Skip to footer

Get Request And Response Body From Chrome Api Oncompleted Method

How to record request and response body, chrome API onCompleted method is giving to record response header. How to do without opening developer tool? I am developing a Chrome exten

Solution 1:

I use a simple way to control this. Based on field requestId of both request and response.

Create a global Map, when event request header arrive, put it into the map with key requestId. remember to remove it from the map when finished, or your background page may crash as Out of Memory.

Chrome extensions - Other ways to read response bodies than chrome.devtools.network?

Post a Comment for "Get Request And Response Body From Chrome Api Oncompleted Method"