class VarnishClient
VarnishClient::Request
- A class that wraps Net::HTTP::Request objects.
To be honest, we aren’t doing anything here. This class exists in case some sort of extra work needs to be done beyond what a Net::HTTPResponse object provides. (We’re assigning the result of a Net::HTTPRequest to this object.)
VarnishClient
- A class that wraps Net::HTTP objects as Varnish clients.
Attributes
request[RW]
response[RW]
Public Class Methods
new()
click to toggle source
# File lib/varnishclient/varnishclient.rb, line 13 def initialize @request = VarnishClient::Request.new @response = VarnishClient::Response.new end