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

Constructor Details

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

Instance Method Details

#bodyObject



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

def body
  response.body
end

#response_headersObject



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

def response_headers
  response.headers.to_h
end

#statusObject



131
132
133
# File 'lib/inspec/resources/http.rb', line 131

def status
  response.status
end