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



120
121
122
# File 'lib/resources/http.rb', line 120

def body
  response.body
end

#response_headersObject



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

def response_headers
  response.headers.to_h
end

#statusObject



116
117
118
# File 'lib/resources/http.rb', line 116

def status
  response.status
end