Class: Inspec::Resources::Http::Worker::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/inspec/resources/http.rb

Instance Attribute Summary

Attributes inherited from Base

#http_method, #opts, #url

Instance Method Summary collapse

Methods inherited from Base

#initialize, #resource_id

Constructor Details

This class inherits a constructor from Inspec::Resources::Http::Worker::Base

Instance Method Details

#bodyObject



139
140
141
# File 'lib/inspec/resources/http.rb', line 139

def body
  response.body
end

#response_headersObject



143
144
145
# File 'lib/inspec/resources/http.rb', line 143

def response_headers
  response.headers.to_h
end

#statusObject



135
136
137
# File 'lib/inspec/resources/http.rb', line 135

def status
  response.status
end