split handling in request/response part

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
add proper constructor

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>