本文整理了Java中io.airlift.http.client.Request.<init>
方法的一些代码示例,展示了Request.<init>
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.<init>
方法的具体详情如下:
包路径:io.airlift.http.client.Request
类名称:Request
方法名:<init>
暂无
代码示例来源:origin: airlift/airlift
public Request build()
{
return new Request(
uri,
method,
headers,
bodyGenerator,
followRedirects,
preserveAuthorizationOnRedirect);
}
}
代码示例来源:origin: io.airlift/http-client-experimental
@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = "Cannot make requests to HTTP port 0")
public void testCannotMakeRequestToIllegalPort()
throws Exception
{
new Request(URI.create("http://example.com:0/"), "GET", createHeaders1(), createBodyGenerator());
}
代码示例来源:origin: com.teradata.airlift/http-client
@Test(expectedExceptions = IllegalArgumentException.class, expectedExceptionsMessageRegExp = "Cannot make requests to HTTP port 0")
public void testCannotMakeRequestToIllegalPort()
throws Exception
{
new Request(URI.create("http://example.com:0/"), "GET", createHeaders1(), createBodyGenerator());
}
代码示例来源:origin: com.teradata.airlift/http-client
new Request(createUri1(), "GET", createHeaders1(), null),
new Request(createUri1(), "GET", createHeaders1(), null))
.addEquivalentGroup(
new Request(createUri1(), "GET", createHeaders1(), bodyGenerator),
new Request(createUri1(), "GET", createHeaders1(), bodyGenerator))
.addEquivalentGroup(
new Request(createUri1(), "GET", createHeaders2(), bodyGenerator))
.addEquivalentGroup(
new Request(createUri2(), "GET", createHeaders1(), bodyGenerator))
.addEquivalentGroup(
new Request(createUri1(), "PUT", createHeaders1(), null),
new Request(createUri1(), "PUT", createHeaders1(), null))
.addEquivalentGroup(
new Request(createUri2(), "PUT", createHeaders1(), null))
.addEquivalentGroup(
new Request(createUri1(), "PUT", createHeaders2(), null))
.addEquivalentGroup(
new Request(createUri1(), "PUT", createHeaders1(), bodyGenerator),
new Request(createUri1(), "PUT", createHeaders1(), bodyGenerator))
.addEquivalentGroup(
new Request(createUri1(), "GET", createHeaders1(), createBodyGenerator()))
.addEquivalentGroup(
new Request(createUri1(), "PUT", createHeaders1(), createBodyGenerator()))
.check();
代码示例来源:origin: io.airlift/http-client-experimental
new Request(createUri1(), "GET", createHeaders1(), null),
new Request(createUri1(), "GET", createHeaders1(), null))
.addEquivalentGroup(
new Request(createUri1(), "GET", createHeaders1(), bodyGenerator),
new Request(createUri1(), "GET", createHeaders1(), bodyGenerator))
.addEquivalentGroup(
new Request(createUri1(), "GET", createHeaders2(), bodyGenerator))
.addEquivalentGroup(
new Request(createUri2(), "GET", createHeaders1(), bodyGenerator))
new Request(createUri1(), "GET", createHeaders1(), createBodyGenerator()))
.addEquivalentGroup(
new Request(createUri1(), "PUT", createHeaders1(), createBodyGenerator()))
.check();
内容来源于网络,如有侵权,请联系作者删除!