AsyncHttpClient/async-http-client — pull request #554 by gerdriesselmann (2014-05-15 10:00:42+00:00)
Title: Respect isUseRawUrl right in the Request itself

We are still struggeling with URLs that get escaped twice due to a isUseRawURL() setting not taken into account. This happens in providers for Grizzyl, Apache, and Java URL.

I therefore would propose to solve this right at the source, the Request itself.

The idea is to provide functions getEscapedX() similar to getRawX(), and make getX() choose between the 2 depending on the isUseRawUrl() setting.

This makes e.g. getUrl() always return the correct URL, and this how it is indeed used throughout the code base.

Old code like

```
URL url = req.isUseRawUrl() ? req.getRawUrl() : req.getUrl();
```

also still would act like before. Although it also be safely removed in the future.