Class: Kronk::Request::VanillaRequest
- Inherits:
-
Object
- Object
- Kronk::Request::VanillaRequest
- Defined in:
- lib/kronk/request.rb
Overview
Allow any http method to be sent
Class Method Summary collapse
Class Method Details
.new(method, path, initheader = nil) ⇒ Object
616 617 618 619 620 621 622 623 |
# File 'lib/kronk/request.rb', line 616 def self.new method, path, initheader=nil klass = Class.new Net::HTTPRequest klass.const_set "METHOD", method.to_s.upcase klass.const_set "REQUEST_HAS_BODY", true klass.const_set "RESPONSE_HAS_BODY", true klass.new path, initheader end |