本文整理了Java中io.vertx.ext.web.client.WebClient.head()
方法的一些代码示例,展示了WebClient.head()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebClient.head()
方法的具体详情如下:
包路径:io.vertx.ext.web.client.WebClient
类名称:WebClient
方法名:head
暂无
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Create an HTTP HEAD request to send to the server at the specified host and default port.
* @param host the host
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> head(String host, String requestURI) {
io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.client.HttpRequest.newInstance(delegate.head(host, requestURI), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG);
return ret;
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Create an HTTP HEAD request to send to the server at the specified host and port.
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> head(int port, String host, String requestURI) {
io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.client.HttpRequest.newInstance(delegate.head(port, host, requestURI), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG);
return ret;
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Create an HTTP HEAD request to send to the server at the default host and port.
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> head(String requestURI) {
io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.client.HttpRequest.newInstance(delegate.head(requestURI), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG);
return ret;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Create an HTTP HEAD request to send to the server at the specified host and default port.
* @param host the host
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> head(String host, String requestURI) {
io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.client.HttpRequest.newInstance(delegate.head(host, requestURI), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG);
return ret;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Create an HTTP HEAD request to send to the server at the default host and port.
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> head(String requestURI) {
io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.client.HttpRequest.newInstance(delegate.head(requestURI), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG);
return ret;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Create an HTTP HEAD request to send to the server at the specified host and port.
* @param port the port
* @param host the host
* @param requestURI the relative URI
* @return an HTTP client request object
*/
public io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> head(int port, String host, String requestURI) {
io.vertx.rxjava.ext.web.client.HttpRequest<io.vertx.rxjava.core.buffer.Buffer> ret = io.vertx.rxjava.ext.web.client.HttpRequest.newInstance(delegate.head(port, host, requestURI), io.vertx.rxjava.core.buffer.Buffer.__TYPE_ARG);
return ret;
}
代码示例来源:origin: io.vertx/vertx-web-client
private void testRequest(HttpMethod method) throws Exception {
testRequest(client -> {
switch (method) {
case GET:
return client.get(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, "/somepath");
case HEAD:
return client.head(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, "/somepath");
case DELETE:
return client.delete(DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, "/somepath");
default:
fail("Invalid HTTP method");
return null;
}
}, req -> assertEquals(method, req.method()));
}
内容来源于网络,如有侵权,请联系作者删除!