put

open fun put(url: String, request: Any, urlVariables: Array<Any>)

Create or update a resource by PUTting the given object to the URI.

URI Template variables are expanded using the given URI variables, if any.

The request parameter can be a HttpEntity in order to add additional HTTP headers to the request.

If you need to assert the request result consider using the exchange method.

Parameters

url

the URL

request

the Object to be PUT, may be null

urlVariables

the variables to expand the template

See also


open fun put(url: String, request: Any, urlVariables: Map<String, out Any>)

Creates a new resource by PUTting the given object to URI template.

URI Template variables are expanded using the given map.

The request parameter can be a HttpEntity in order to add additional HTTP headers to the request.

If you need to assert the request result consider using the exchange method.

Parameters

url

the URL

request

the Object to be PUT, may be null

urlVariables

the variables to expand the template

See also


open fun put(url: URI, request: Any)

Creates a new resource by PUTting the given object to URL.

The request parameter can be a HttpEntity in order to add additional HTTP headers to the request.

If you need to assert the request result consider using the exchange method.

Parameters

url

the URL

request

the Object to be PUT, may be null

See also