Search in sources :

Example 1 with HttpRequester

use of io.servicetalk.http.api.HttpRequester in project servicetalk by apple.

the class DefaultMultiAddressUrlHttpClientBuilderTest method buildAggregatedWithDefaults.

@Test
void buildAggregatedWithDefaults() throws Exception {
    HttpRequester newAggregatedRequester = HttpClients.forMultiAddressUrl().ioExecutor(CTX.ioExecutor()).executor(CTX.executor()).executionStrategy(defaultStrategy()).build();
    assertNotNull(newAggregatedRequester);
    newAggregatedRequester.closeAsync().toFuture().get();
}
Also used : StreamingHttpRequester(io.servicetalk.http.api.StreamingHttpRequester) HttpRequester(io.servicetalk.http.api.HttpRequester) BlockingHttpRequester(io.servicetalk.http.api.BlockingHttpRequester) BlockingStreamingHttpRequester(io.servicetalk.http.api.BlockingStreamingHttpRequester) Test(org.junit.jupiter.api.Test)

Aggregations

BlockingHttpRequester (io.servicetalk.http.api.BlockingHttpRequester)1 BlockingStreamingHttpRequester (io.servicetalk.http.api.BlockingStreamingHttpRequester)1 HttpRequester (io.servicetalk.http.api.HttpRequester)1 StreamingHttpRequester (io.servicetalk.http.api.StreamingHttpRequester)1 Test (org.junit.jupiter.api.Test)1