class WebkitRemote::Client::NetworkCacheEntry
Wraps information about a resource served out of the browser's cache.
Attributes
response[R]
@return [WebkitRemote::Client::NetworkResponse] the cached response data
type[R]
@return [Symbol] the type of resource returned by this response; documented
values are :document, :font, :image, :other, :script, :stylesheet, :websocket and :xhr
url[R]
@return [String] the URL of the response
Public Class Methods
new(raw_cached_resource)
click to toggle source
@private Use Event#for instead of calling this constructor directly
# File lib/webkit_remote/client/network_events.rb, line 539 def initialize(raw_cached_resource) if raw_cached_resource['response'] @response = WebkitRemote::Client::NetworkResponse.new( raw_cached_resource['response']) else @response = nil end @type = (raw_cached_resource['type'] || 'other').downcase.to_sym @url = raw_cached_resource['url'] end