app/controllers/application_controller.rb
def put_request(uri, body, token)
    http = build_http(uri)
    request = Net::HTTP::Put.new(uri.request_uri, initheader = build_headers(token))
    request.body = body
    return http.request(request)		
  end
##
# Put request wrapper function
# returns a HTTPResponse object
#
Put request wrapper function
returns a HTTPResponse object
Put request wrapper function returns a HTTPResponse object
def put_request(uri, body, token)
    http = build_http(uri)
    request = Net::HTTP::Put.new(uri.request_uri, initheader = build_headers(token))
    request.body = body
    return http.request(request)		
  end
def put_request ( uri , body , token ) http = build_http ( uri ) request = Net :: HTTP :: Put . new ( uri . request_uri , initheader = build_headers ( token ) ) request . body = body return http . request ( request ) end
Put request wrapper function
returns a HTTPResponse object
Put request wrapper function returns a HTTPResponse object
uri
body
token