POST, PUT, or DELETE a resource with authenticated credentials.

Description

POST, PUT, or DELETE data to a URL using an HTTP request using authentication credentials provided in a client authentication, either via authentiction token or certificate. If the user does not have a valid token or certificate, request fails.

Usage

1
2
auth_put_post_delete(method, url, encode = "multipart", body = as.list(NA),
  node)

Arguments

method

a string indicating which HTTP method to use (post, put, or delete)

url

The URL to be accessed via authenticated PUT

encode

the type of encoding to use for the PUT body, defaults to 'multipart'

body

a list of data to be included in the body of the PUT request

node

The D1Node object that the request will be made to.

Value

the response object from the method

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.