io.airlift.http.client.Request.<init>()方法的使用及代码示例

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

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

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();

相关文章