-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb][BiDi] Add support for provide response command #15080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rb][BiDi] Add support for provide response command #15080
Conversation
…o add_support_for_provide_response_command
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…_command' into add_support_for_provide_response_command
…_command' into add_support_for_provide_response_command
* Add response handler * Update auth handlers and improve the :on method * Request and response working as expected * Add test for continue without auth and cancel auth * Finish implementation * Correct rubocop offenses * Add alias for user to do network.bidi instead of network.network * Fix rust file causing formatting error * Handle requests and responses in block * Add ability to pass handlers to each different intercepted element * Headers working * All tests passing and signatures simplified * remove unnecessary changes * remove unnecessary changes * Added credentials and set cookie header to intercepted response * Fix rubocop issues * Make auth handler more user friendly * Add filtering an url pattern support * Fix formatting issues * Modify tests to avoid element related failures on firefox * Fix styling of comments * Improve types and hash consistency * Update all the places that use 9.4.8.0 * Serialize request values * Refactor cookies, headers and set cookie headers * Simplify serialization * Add extra type support * remove unnecessary comment * Improve typing * add provide response support * Correct rubocop offenses * Remove set cookie headers * Remove set cookie headers * Fix failing tests * Add negative scenario --------- Co-authored-by: Puja Jagani <[email protected]>
* Add response handler * Update auth handlers and improve the :on method * Request and response working as expected * Add test for continue without auth and cancel auth * Finish implementation * Correct rubocop offenses * Add alias for user to do network.bidi instead of network.network * Fix rust file causing formatting error * Handle requests and responses in block * Add ability to pass handlers to each different intercepted element * Headers working * All tests passing and signatures simplified * remove unnecessary changes * remove unnecessary changes * Added credentials and set cookie header to intercepted response * Fix rubocop issues * Make auth handler more user friendly * Add filtering an url pattern support * Fix formatting issues * Modify tests to avoid element related failures on firefox * Fix styling of comments * Improve types and hash consistency * Update all the places that use 9.4.8.0 * Serialize request values * Refactor cookies, headers and set cookie headers * Simplify serialization * Add extra type support * remove unnecessary comment * Improve typing * add provide response support * Correct rubocop offenses * Remove set cookie headers * Remove set cookie headers * Fix failing tests * Add negative scenario --------- Co-authored-by: Puja Jagani <[email protected]>
User description
Description
This PR adds support for the provide response method and allows the provide_response method to be passed to response
network.provide_response:
Motivation and Context
This PR continues the work done on #14900 to add full access to all the BiDi network commands
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Introduced BiDi network interception capabilities for requests and responses.
Added support for authentication handling, including skipping, canceling, and providing credentials.
Implemented serialization for cookies, headers, and set-cookie headers.
Enhanced test coverage for BiDi network features and added unit tests for new components.
Changes walkthrough 📝
14 files
Added autoload for new BiDi network interception classesEnhanced BiDi network with interception and response handlingAdded cookie serialization support for BiDi networkAdded credentials handling for BiDi network authenticationAdded header serialization support for BiDi networkAdded intercepted authentication handling for BiDi networkIntroduced base class for intercepted network itemsAdded intercepted request handling for BiDi networkAdded intercepted response handling for BiDi networkAdded set-cookie header serialization for BiDi networkAdded URL pattern formatting for BiDi network interceptionIntegrated BiDi network interception into common network moduleUpdated BiDi type signatures for new capabilitiesAdded type signatures for BiDi network interception methods6 files
Added integration tests for BiDi network interceptionEnhanced integration tests for network handlersAdded unit tests for cookie serializationAdded unit tests for credentials handlingAdded unit tests for header serializationAdded unit tests for set-cookie header serialization11 files