simple-headless-chrome icon indicating copy to clipboard operation
simple-headless-chrome copied to clipboard

add generic ajax method based on POST call

Open photostu opened this issue 7 years ago • 1 comments

Love the lib, would like to be able to send more than just a post that does a form call. So I made a generic copy of your post method and called it ajax. You can specify the action verb, defaults to GET. Options also default to application/json. Let me know what you think!

photostu avatar Oct 19 '17 19:10 photostu

Nice @photostu ! Thanks!

Is it possible for you to add a simple test case? You can copy one of the test we already have in this project.

Thanks! Luciano

LucianoGanga avatar Oct 21 '17 16:10 LucianoGanga