Sha256: e764c0d7d233e6530462c303c22dbd247bc23822c0dead65d05aab3d1c5e9584
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
require 'net/http' module VraptorScaffold class HttpRequest def self.open_session url return http.start url end protected def self.http return Net::HTTP unless ENV['http_proxy'] uri = URI.parse(ENV['http_proxy']) proxy_user, proxy_pass = uri.userinfo.split(/:/) if uri.userinfo Net::HTTP::Proxy(uri.host, uri.port, proxy_user, proxy_pass) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vraptor-scaffold-1.3.0 | lib/vraptor-scaffold/http_request.rb |
vraptor-scaffold-1.3.0.rc | lib/vraptor-scaffold/http_request.rb |
vraptor-scaffold-1.2.3 | lib/vraptor-scaffold/http_request.rb |