class WebkitRemote::Event::NetworkCacheHit

Emitted when a resource is served from the local cache.

Attributes

resource[R]

@return [WebkitRemote::Client::NetworkResource] information about the

resource fetched by this network operation

Public Class Methods

new(rpc_event, client) click to toggle source

@private Use Event#for instead of calling this constructor directly.

Calls superclass method WebkitRemote::Event::new
# File lib/webkit_remote/client/network_events.rb, line 99
def initialize(rpc_event, client)
  super

  @resource = client.network_resource raw_data['requestId']
  @resource.add_event self
end