Class: Azure::Core::Service
- Inherits:
-
Object
- Object
- Azure::Core::Service
- Defined in:
- lib/mswin-build/azure-patch.rb
Instance Method Summary collapse
Instance Method Details
#call(method, uri, body = nil, headers = nil) {|request| ... } ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/mswin-build/azure-patch.rb', line 5 def call(method, uri, body=nil, headers=nil) request = Core::Http::HttpRequest.new(method, uri, body) request.headers.merge!(headers) if headers request.headers['connection'] = 'keep-alive' if request.respond_to? :headers yield request if block_given? response = request.call response end |