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



129
130
131
# File 'lib/inspec/resources/http.rb', line 129

def body
  response.body
end

#response_headersObject



133
134
135
# File 'lib/inspec/resources/http.rb', line 133

def response_headers
  response.headers.to_h
end

#statusObject



125
126
127
# File 'lib/inspec/resources/http.rb', line 125

def status
  response.status
end