Description Usage Arguments Details
This works much the same way as the content()
function in the httr
package and
conforms to its API for the as
, type
, encoding
and ...
fields.
1 2 |
url, ctype, headers, payload |
|
as |
desired type of output: |
type |
MIME type (aka internet media type) used to override the content type returned by the server. See http://en.wikipedia.org/wiki/Internet_media_type for a list of common types. |
encoding |
For text, overrides the charset or the Latin1 (ISO-8859-1) default, if you know that the server is returning the incorrect encoding as the charset in the content-type. Use for text and parsed outputs. |
... |
Other parameters parsed on to the parsing functions, if |
Unlike its httr
counterpart, payload_content()
can handle gzip'd payload
contents (httr
has it easy since curl
decodes the gzip content automagically
for it). It does make a best-guess for expanded content size, so is not 100
guaranteed to work for all gzip'd payload content.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.