default Request form(Iterable<? extends Pair<String, String>> parameters) { return header( CONTENT_TYPE, format("%s; charset=%s", APPLICATION_FORM_URLENCODED, DEFAULT_CHARACTER_SET)) .entity(Entity.entity(UrlEncodedMessage.toString(parameters))); }
default Request query(Iterable<? extends Pair<String, String>> parameters) { return uri(uri().query(UrlEncodedMessage.toString(parameters))); }