javascript – Chrome Extension : get response.body of any post or get request using devtools.network api

Currently trying to create a chrome extension which needs to listen to the page’s HTTP requests, waiting for any response and get it .
i know there is a way to do this with chrome.devtools.network api but i don’t know where i strat .

I can’t seem to understand how to read the page’s requests from my extension so what would be the best way of handling the situation?
please any help