Fix swap and equals methods of http::request
Add unit test for http::request::swap