| 84 | } |
| 85 | |
| 86 | String Url::toString() const |
| 87 | { |
| 88 | String result = getScheme(); |
| 89 | result += _F("://"); |
| 90 | if(User.length() != 0) { |
| 91 | result += User; |
| 92 | if(Password.length() != 0) { |
| 93 | result += ':'; |
| 94 | result += Password; |
| 95 | } |
| 96 | |
| 97 | result += '@'; |
| 98 | } |
| 99 | |
| 100 | result += getHostWithPort(); |
| 101 | result += getPathWithQuery(); |
| 102 | |
| 103 | if(Fragment) { |
| 104 | result += '#'; |
| 105 | result += uri_escape(Fragment); |
| 106 | } |
| 107 | |
| 108 | return result; |
| 109 | } |
| 110 | |
| 111 | String Url::getPathWithQuery() const |
| 112 | { |
no test coverage detected