What is different between frappe.response and frappe.local.response

Hello everyone.

I’m using frappe.local.reponse to modify response before send to client request API. But, I found that some documents use frappe.response to do that. So, I confuse about what is the best practise to deal with API response. Both is the same or different?

Thank you!