Set or add to a list of request-handling functions. Request-handling functions must take a request and return a request.
handlers_set(...)handlers_add_back(existing, ...)
handlers_add_front(existing, ...)
One or more request-handling functions to add.
An existing request handler list.
if (FALSE) {
# Replace a handler list with a new handler list.
handlers$build <- handlers_set(restxml_build)
# Add a new handler onto the end of an existing handler list.
handlers$build <- handlers_add_back(handlers$build, restxml_build)
# Add a new handler at the beginning of an existing handler list.
handlers$build <- handlers_add_front(handlers$build, restxml_build)
}
Run the code above in your browser using DataLab