Adds type attribute to TCP::Request to identify it as request or response.