public interface HttpClient
JdkHttpClient| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpClient.BodySuppliers
Utility class for creating different body suppliers.
|
| Modifier and Type | Method and Description |
|---|---|
default HttpResponse |
send(HttpRequest httpRequest)
Sends HTTP request.
|
HttpResponse |
send(HttpRequest httpRequest,
IOSupplier<? extends InputStream> bodySupplier)
Sends HTTP request with a provided body.
|
default HttpResponse send(HttpRequest httpRequest) throws IOException
httpRequest - the request to be sentIOException - an I/O error occursHttpResponse send(HttpRequest httpRequest, IOSupplier<? extends InputStream> bodySupplier) throws IOException
httpRequest - the request to be sentbodySupplier - HTTP body to be sentIOException - an I/O error occursHttpClient.BodySuppliersCopyright © 2023. All rights reserved.