com.ning.http.client.RequestBuilder.setMethod()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中com.ning.http.client.RequestBuilder.setMethod方法的一些代码示例,展示了RequestBuilder.setMethod的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RequestBuilder.setMethod方法的具体详情如下:
包路径:com.ning.http.client.RequestBuilder
类名称:RequestBuilder
方法名:setMethod

RequestBuilder.setMethod介绍

暂无

代码示例

代码示例来源:origin: com.ning/async-http-client

public Future<Response> delete(BodyConsumer bodyConsumer) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("DELETE");
  return execute(r, bodyConsumer, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> head() throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("HEAD");
  return execute(r, null, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> head(ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("HEAD");
  return execute(r, null, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> delete() throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("DELETE");
  return execute(r, null, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> delete(BodyConsumer bodyConsumer, ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("DELETE");
  return execute(r, bodyConsumer, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> options() throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("OPTIONS");
  return execute(r, null, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> options(BodyConsumer bodyConsumer, ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("OPTIONS");
  return execute(r, bodyConsumer, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> delete(ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("DELETE");
  return execute(r, null, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> options(ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("OPTIONS");
  return execute(r, null, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> options(BodyConsumer bodyConsumer) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("OPTIONS");
  return execute(r, bodyConsumer, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> post(BodyGenerator bodyGenerator, ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  r.setBody(bodyGenerator);
  return execute(r, null, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> put(BodyConsumer consumer, Part... parts) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  for (Part part : parts) {
    r.addBodyPart(part);
  }
  return execute(r, consumer, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> post(Part... parts) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  for (Part part : parts) {
    r.addBodyPart(part);
  }
  return execute(r, null, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> post(BodyConsumer consumer, Part... parts) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  for (Part part : parts) {
    r.addBodyPart(part);
  }
  return execute(r, consumer, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> put(BodyGenerator bodyGenerator, BodyConsumer bodyConsumer) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("PUT");
  r.setBody(bodyGenerator);
  return execute(r, bodyConsumer, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> put(BodyGenerator bodyGenerator, BodyConsumer bodyConsumer, ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("PUT");
  r.setBody(bodyGenerator);
  return execute(r, bodyConsumer, throwableHandler);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> put(BodyGenerator bodyGenerator) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("PUT");
  r.setBody(bodyGenerator);
  return execute(r, null, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> post(BodyGenerator bodyGenerator, BodyConsumer bodyConsumer) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  r.setBody(bodyGenerator);
  return execute(r, bodyConsumer, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> put(Part... parts) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  for (Part part : parts) {
    r.addBodyPart(part);
  }
  return execute(r, null, null);
}

代码示例来源:origin: com.ning/async-http-client

public Future<Response> post(BodyGenerator bodyGenerator, BodyConsumer bodyConsumer, ThrowableHandler throwableHandler) throws IOException {
  RequestBuilder r = rebuildRequest(requestBuilder.build());
  r.setMethod("POST");
  r.setBody(bodyGenerator);
  return execute(r, bodyConsumer, throwableHandler);
}

相关文章