rockr.post: Generic REST resource creation.

Description Usage Arguments Value See Also

View source: R/connection.R

Description

Generic REST resource creation.

Usage

1
2
3
4
5
6
7
8
9
rockr.post(
  conn,
  ...,
  query = list(),
  body = "",
  contentType = "application/x-rscript",
  acceptType = "application/octet-stream, application/json",
  callback = NULL
)

Arguments

conn

A rockr connection object.

...

Resource path segments.

query

Named list of query parameters.

body

The body of the request.

contentType

The type of the body content. Default is 'application/x-rscript'.

acceptType

The type of the body content. Default is 'application/octet-stream, application/json', i.e. a serialized R object or an error message.

callback

A callback function to handle the response object.

Value

The response output object.

See Also

Other REST functions: rockr.delete(), rockr.get(), rockr.put()


rockr documentation built on March 12, 2021, 5:06 p.m.