go-chrome icon indicating copy to clipboard operation
go-chrome copied to clipboard

how to set a custom header before request a url?

Open terry2010 opened this issue 6 years ago • 1 comments

hello , thanks for your amazing work ,

I just hit a little comfuse how to set a custom header to visit a url ,

eg. /_examples/screenshot-url

how to set a mobile device header to this example ? thank you

terry2010 avatar May 11 '19 20:05 terry2010

Hi @terry2010,

Thank you for opening an issue. Unfortunately there isn't a built-in way to do that, but you should be able to build something that can that using the devtools API methods. I don't have time now but it's an interesting problem, when I get a chance I'll take a closer look.

mkenney avatar May 13 '19 22:05 mkenney