rubycdp / ferrum

Headless Chrome Ruby API
https://ferrum.rubycdp.com
MIT License
1.69k stars 120 forks source link

Added common `RequestParams` for both `Request` and `InterceptedRequest` #384

Closed postmodern closed 11 months ago

postmodern commented 11 months ago

Extracted common methods that provide access to @request params for both Ferrum::Network::Request and Ferrum::Network::InterceptedRequest, so that they have similar methods. Previously, InterceptedRequest was missing a body method for accessing @request['postData'].