We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From RCurl:
basicHeaderGatherer <- function(txt = character(), max = NA) { basicTextGatherer(txt, max, parseHTTPHeader) } basicTextGatherer <- function(txt = character(), max = NA, value = NULL, .mapUnicode = TRUE) { update = function(str) { txt <<- c(txt, str) if(!is.na(max) && nchar(txt) >= max) { return(0) } nchar(str, "bytes") } reset = function() { txt <<- character() } val <- function(collapse = "") { if(!is.null(collapse)) txt = paste(txt, collapse = collapse) if(.mapUnicode) txt = mapUnicodeEscapes(txt) value(txt) } ans <- structure( list(update = update, value = val, reset = reset), class = c("RCurlTextHandler", "RCurlCallbackFunction") ) ans$reset() ans }
The text was updated successfully, but these errors were encountered:
From docs looks like this is only called once for each complete header. Needs to respond with number of bytes processed.
Sorry, something went wrong.
535d45d
Real magic is in RCurl::parseHTTPHeader(headers), which has to deal with all headers captured from every request (i.e. even if multiple redirects)
RCurl::parseHTTPHeader(headers)
No branches or pull requests
From RCurl:
The text was updated successfully, but these errors were encountered: