Class SpeakeasyHTTPClient
- java.lang.Object
-
- com.stackone.stackone_client_java.utils.SpeakeasyHTTPClient
-
- All Implemented Interfaces:
HTTPClient
public class SpeakeasyHTTPClient extends java.lang.Object implements HTTPClient
-
-
Constructor Summary
Constructors Constructor Description SpeakeasyHTTPClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.http.HttpResponse<java.io.InputStream>send(java.net.http.HttpRequest request)Sends an HTTP request and returns the response.
-
-
-
Method Detail
-
send
public java.net.http.HttpResponse<java.io.InputStream> send(java.net.http.HttpRequest request) throws java.io.IOException, java.lang.InterruptedException, java.net.URISyntaxExceptionDescription copied from interface:HTTPClientSends an HTTP request and returns the response.Note that
HttpRequestis immutable. To modify the request you can useHttpRequest#newBuilder(HttpRequest, BiPredicatewith JDK 16 and later (which will copy the request for modification in a builder). If that method is not available then use) Helpers.copy(java.net.http.HttpRequest)(which also returns a builder).- Specified by:
sendin interfaceHTTPClient- Parameters:
request- HTTP request- Returns:
- HTTP response
- Throws:
java.io.IOExceptionjava.lang.InterruptedExceptionjava.net.URISyntaxException
-
-