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

Inherits:
Base
  • Object
show all
Defined in:
lib/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



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

def body
  response.body
end

#response_headersObject



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

def response_headers
  response.headers.to_h
end

#statusObject



122
123
124
# File 'lib/resources/http.rb', line 122

def status
  response.status
end