test/jdk/java/net/httpclient/offline/FixedResponseHttpClient.java
branchhttp-client-branch
changeset 56089 42208b2f224e
parent 56023 fa36a61f4cbf
child 56126 86e628130926
equal deleted inserted replaced
56088:38fac6d0521d 56089:42208b2f224e
    31 import java.util.List;
    31 import java.util.List;
    32 import java.util.Optional;
    32 import java.util.Optional;
    33 import java.util.concurrent.CompletableFuture;
    33 import java.util.concurrent.CompletableFuture;
    34 import java.util.concurrent.Flow;
    34 import java.util.concurrent.Flow;
    35 import java.util.concurrent.SubmissionPublisher;
    35 import java.util.concurrent.SubmissionPublisher;
    36 import jdk.incubator.http.HttpClient;
    36 import java.net.http.HttpClient;
    37 import jdk.incubator.http.HttpHeaders;
    37 import java.net.http.HttpHeaders;
    38 import jdk.incubator.http.HttpRequest;
    38 import java.net.http.HttpRequest;
    39 import jdk.incubator.http.HttpResponse;
    39 import java.net.http.HttpResponse;
    40 import jdk.incubator.http.HttpResponse.BodyHandler;
    40 import java.net.http.HttpResponse.BodyHandler;
    41 import jdk.incubator.http.HttpResponse.BodySubscriber;
    41 import java.net.http.HttpResponse.BodySubscriber;
    42 import jdk.incubator.http.HttpResponse.PushPromiseHandler;
    42 import java.net.http.HttpResponse.PushPromiseHandler;
    43 import static java.nio.charset.StandardCharsets.UTF_8;
    43 import static java.nio.charset.StandardCharsets.UTF_8;
    44 import static java.nio.ByteBuffer.wrap;
    44 import static java.nio.ByteBuffer.wrap;
    45 
    45 
    46 /**
    46 /**
    47  * An HttpClient that returns a given fixed response.
    47  * An HttpClient that returns a given fixed response.