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