Class: YACCL::Services::Internal::BrowserBindingService::Basement

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/yaccl/services/internal/browser_binding_service.rb

Class Method Summary collapse

Class Method Details

.multipart_post(url, options) ⇒ Object



89
90
91
92
93
94
# File 'lib/yaccl/services/internal/browser_binding_service.rb', line 89

def self.multipart_post(url, options)
  url = URI.parse(url)
  Net::HTTP.start(url.host, url.port) do |http|
    http.request(Net::HTTP::Post::Multipart.new(url.path, options))
  end
end