Class: HttpArchive::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/http_archive/classes.rb

Overview

Holds information for every single interaction of the browser with the page. Entry objects hold the request and response data in seperate objects.

Instance Attribute Summary collapse

Instance Attribute Details

#cacheHash

Info about cache usage for this interaction

Returns:

  • (Hash)

    data about cache usage as a hash


62
63
64
# File 'lib/http_archive/classes.rb', line 62

def cache
  @cache
end

#connectionString

Client or server port number

Returns:

  • (String)

    port number as string, e.g. “80”


73
74
75
# File 'lib/http_archive/classes.rb', line 73

def connection
  @connection
end

#pagerefString

Returns the reference to the parent page

Returns:

  • (String)

    ref to parent page as string, e.g. “page_50735”


47
48
49
# File 'lib/http_archive/classes.rb', line 47

def pageref
  @pageref
end

#requestRequest

Request data for this interaction

Returns:

  • (Request)

    'Request' object with request-related data


56
57
58
# File 'lib/http_archive/classes.rb', line 56

def request
  @request
end

#responseResponse

Response data for this interaction

Returns:

  • (Response)

    'Response' object with response-related data


59
60
61
# File 'lib/http_archive/classes.rb', line 59

def response
  @response
end

#server_ip_addressString

IP address of the server

Returns:

  • (String)

    ip address as string, e.g. “91.239.200.165”


70
71
72
# File 'lib/http_archive/classes.rb', line 70

def server_ip_address
  @server_ip_address
end

#started_datetimeString

Returns the datetime as string when loading of this element started

Returns:

  • (String)

    datetime-string, e.g. “2013-05-28T22:16:19.883+02:00”


50
51
52
# File 'lib/http_archive/classes.rb', line 50

def started_datetime
  @started_datetime
end

#timeFixnum

Duration of the load time of this interaction

Returns:

  • (Fixnum)

    elapsed time of this request in milliseconds


53
54
55
# File 'lib/http_archive/classes.rb', line 53

def time
  @time
end

#timingsHash

Info about Request/Response round trip

Examples:

{"blocked"=>15, "dns"=>0, "connect"=>0, "send"=>0, "wait"=>39, "receive"=>0}

Returns:

  • (Hash)

    timings data as a hash


67
68
69
# File 'lib/http_archive/classes.rb', line 67

def timings
  @timings
end