I prefer something like "content: %s url: %s".format(request.entity, request.uri).replaceAll("\n", "")

But that might be bikeshedding it a bit. Otherwise lgtm