class Urushiol::Txreq

Public Class Methods

new() click to toggle source
# File lib/txreq.rb, line 4
def initialize
  @req = "\ntxreq"
end

Public Instance Methods

get_source() click to toggle source
# File lib/txreq.rb, line 24
def get_source
  @req
end
host(host) click to toggle source
# File lib/txreq.rb, line 16
def host(host)
  @req << " -hdr \"Host: #{host.strip}\""
end
protocol(proto) click to toggle source
# File lib/txreq.rb, line 12
def protocol(proto)
  @req << " -proto #{proto.strip}"
end
request(type) click to toggle source
# File lib/txreq.rb, line 20
def request(type)
  @req << " -req #{type.strip.upcase}"
end
url(url) click to toggle source
# File lib/txreq.rb, line 8
def url(url)
  @req << " -url #{url.strip}"
end