@@ -55,41 +55,41 @@ def remove_intercept(intercept)
5555 def continue_with_auth ( request_id , username , password )
5656 @bidi . send_cmd (
5757 'network.continueWithAuth' ,
58- ' request' => request_id ,
59- ' action' => 'provideCredentials' ,
60- ' credentials' => {
61- ' type' => 'password' ,
62- ' username' => username ,
63- ' password' => password
58+ request : request_id ,
59+ action : 'provideCredentials' ,
60+ credentials : {
61+ type : 'password' ,
62+ username : username ,
63+ password : password
6464 }
6565 )
6666 end
6767
6868 def continue_without_auth ( request_id )
6969 @bidi . send_cmd (
7070 'network.continueWithAuth' ,
71- ' request' => request_id ,
72- ' action' => 'default'
71+ request : request_id ,
72+ action : 'default'
7373 )
7474 end
7575
7676 def cancel_auth ( request_id )
7777 @bidi . send_cmd (
7878 'network.continueWithAuth' ,
79- ' request' => request_id ,
80- ' action' => 'cancel'
79+ request : request_id ,
80+ action : 'cancel'
8181 )
8282 end
8383
8484 def continue_request ( **args )
8585 @bidi . send_cmd (
8686 'network.continueRequest' ,
8787 request : args [ :id ] ,
88- ' body' => args [ :body ] ,
89- ' cookies' => args [ :cookies ] ,
90- ' headers' => args [ :headers ] ,
91- ' method' => args [ :method ] ,
92- ' url' => args [ :url ]
88+ body : args [ :body ] ,
89+ cookies : args [ :cookies ] ,
90+ headers : args [ :headers ] ,
91+ method : args [ :method ] ,
92+ url : args [ :url ]
9393 )
9494 end
9595
@@ -104,11 +104,11 @@ def continue_response(**args)
104104 @bidi . send_cmd (
105105 'network.continueResponse' ,
106106 request : args [ :id ] ,
107- ' cookies' => args [ :cookies ] ,
108- ' credentials' => args [ :credentials ] ,
109- ' headers' => args [ :headers ] ,
110- ' reasonPhrase' => args [ :reason ] ,
111- ' statusCode' => args [ :status ]
107+ cookies : args [ :cookies ] ,
108+ credentials : args [ :credentials ] ,
109+ headers : args [ :headers ] ,
110+ reasonPhrase : args [ :reason ] ,
111+ statusCode : args [ :status ]
112112 )
113113 end
114114
0 commit comments