Open jeroen opened 11 years ago
The Response class has a method write to add text to the body field. However, I cannot find a method to send a file or raw vector? E.g. something like:
Response
write
raw
res <- Response$new(); mytemp <- tempfile(); png(mytemp); hist(rnorm(1e5)); dev.off(); res$header("content-type", "image/png") res$sendbin(mytemp);
The
Response
class has a methodwrite
to add text to the body field. However, I cannot find a method to send a file orraw
vector? E.g. something like: