Method: Selenium::WebDriver::BiDi::InterceptedResponse#provide_response

Defined in:
lib/selenium/webdriver/bidi/network/intercepted_response.rb

#provide_responseObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/selenium/webdriver/bidi/network/intercepted_response.rb', line 57

def provide_response
  cookies = @cookies&.as_json
  headers = @headers&.as_json
  network.provide_response(
    id: id,
    cookies: cookies,
    headers: headers,
    body: body,
    reason: reason,
    status: status
  )
end