Make `Request` and `Response` define equality operator

This makes `Request` and `Response` objects comparable by defining
the equality operator. This allows comparing them, which is useful
when testing.