api update: request

(This has to touch many of the other files because they use request
internally.)