Add api for request_rec