Added the core function: respond to handle the response

Signed-off-by: Mr SQint <ilya@shindyapin.com>