Esempio n. 1
0
 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)));
 }
Esempio n. 2
0
 default Request query(Iterable<? extends Pair<String, String>> parameters) {
   return uri(uri().query(UrlEncodedMessage.toString(parameters)));
 }