Class HttpComponentsClient
java.lang.Object
org.sourcelab.buildkite.api.client.http.HttpComponentsClient
- All Implemented Interfaces:
Closeable,AutoCloseable,Client
Underlying HTTP Client implementation making use of HttpComponents 5.x library.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the Client implementation and release any resources it may have open.executeRequest(Request request) Execute the given request and return the parsed response.
-
Constructor Details
-
HttpComponentsClient
Constructor.- Parameters:
configuration- User supplied API Client configuration.
-
-
Method Details
-
executeRequest
Execute the given request and return the parsed response.- Specified by:
executeRequestin interfaceClient- Parameters:
request- The request to execute.- Returns:
- Response from the API.
-
close
public void close()Description copied from interface:ClientClose the Client implementation and release any resources it may have open.
-