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



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

def body
  response.body
end

#response_headersObject



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

def response_headers
  response.headers.to_h
end

#statusObject



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

def status
  response.status
end