class OvirtSDK4::Request

This class represents an HTTP request.

@api private

Attributes

body[RW]
headers[RW]
method[RW]
path[RW]
query[RW]

Public Class Methods

new(opts = {}) click to toggle source

Creates a new HTTP request.

# File lib/ovirtsdk4/http.rb, line 38
def initialize(opts = {})
  self.method = opts[:method] || :GET
  self.path = opts[:path] || ''
  self.headers = opts[:headers] || {}
  self.query = opts[:query] || {}
  self.body = opts[:body]
end