write_function

0th

Percentile

S3 object to define respose writer.

This S3 object allows you to control how the response body is saved.

Keywords
internal
Usage
write_function(subclass, ...)

write_init(x)

write_opts(x)

write_term(x)

Arguments
subclass,...
Class name and fields. Used in class constructors.
x
A write_function object to process.
Details

There are three key methods:

  • write_init(): called before the write is started. It should return a modified object.
  • write_opts(): returns a list options passed on to RCurl
  • write_term(): called after the request is complete. Should return the content (or a pointer to it)

Aliases
  • write_function
  • write_init
  • write_opts
  • write_term
Documentation reproduced from package httr, version 0.6.1, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.