Method: TinyClient::CurbRequestor.perform_put

Defined in:
lib/tiny_client/curb_requestor.rb

.perform_put(url, headers, content, connect_timeout, verbose) ⇒ TinyClient::Response

Perform a put request with Curl

Parameters:

  • url (String)

    the full url

  • headers (Hash)

    the request headers

  • content (String)

    the request body content

  • connect_timeout (Integer)

    timeout if the request connection go over (in second)

  • verbose (Boolean)

    set curl verbose mode

Returns:

Raises:

  • (ResponseError)

    if the server respond with an error status (i.e 404, 500..)



28
29
30
31
# File 'lib/tiny_client/curb_requestor.rb', line 28

def perform_put(url, headers, content, connect_timeout, verbose)
  perform(:PUT, url, nil, content, headers: headers, connect_timeout: connect_timeout,
                                   verbose: verbose)
end