Method: Bandwidth::HttpClient#put

Defined in:
lib/bandwidth/http/http_client.rb

#put(query_url, headers: {}, parameters: {}) ⇒ Object

Get a PUT HttpRequest object.

Parameters:

  • The (String)

    URL to send the request to.

  • The (Hash, Optional)

    headers for the HTTP Request.

  • The (Hash, Optional)

    parameters for the HTTP Request.



70
71
72
73
74
75
76
77
# File 'lib/bandwidth/http/http_client.rb', line 70

def put(query_url,
        headers: {},
        parameters: {})
  HttpRequest.new(HttpMethodEnum::PUT,
                  query_url,
                  headers: headers,
                  parameters: parameters)
end