passing request and resopnse arguments to getContext function