[Enhancement] Specify context for callbacks

i added functionality so that the callbacks from post and get are called
in the specified context