httr (version 0.6.0)

write_function: S3 object to define respose writer.

Description

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

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)