HTTPExchange(final AbstractBody req, HTTPResponse resp) {
        if (req == null) {
            throw(new IllegalArgumentException("Request body cannot be null"));
        }
        if (resp == null) {
            throw(new IllegalArgumentException("Response object cannot be null"));
        }
        request = req;
        response = resp;
    }