httr (version 0.6.0)

PATCH: Send PATCH request to a server.

Description

Send PATCH request to a server.

Usage

PATCH(url = NULL, config = list(), ..., body = NULL,
  encode = c("multipart", "form", "json"), multipart = TRUE,
  handle = NULL)

Arguments

url
the url of the page to retrieve
config
Additional configuration settings such as http authentication (authenticate), additional headers (add_headers), cookies (
...
Further named parameters, such as query, path, etc, passed on to modify_url. Unnamed parameters will be combined with config.
body
One of the following:
  • FALSE: No body
  • NULL: An empty body
  • "": A length 0 body
  • upload_file("path/"): The contents of a file. The mime type will be guessed from the exte
encode
If the body is a named list, how should it be encoded? Can be one of form (application/x-www-form-urlencoded), multipart, (multipart/form-data), or json (application/json).

For "multipart", list elements can be strings or objects created by

multipart
Deprecated. TRUE = encode = "multipart", FALSE = {encode = "form"}. Files can not be uploaded when FALSE.
handle
The handle to use with this request. If not supplied, will be retrieved and reused from the handle_pool based on the scheme, hostname and port of the url. By default httr requests to th