Class BasicHttpClient
java.lang.Object
org.eclipse.microprofile.telemetry.metrics.tck.application.BasicHttpClient
A really basic client for doing Http requests
For use when we don't want to use JAX-RS client or something else which has integration with telemetry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMakes a GET request to a path and returns the response codegetResponseMessage(String path) Makes a GET request to a path and returns the response code
-
Constructor Details
-
BasicHttpClient
- Parameters:
baseUrl- The base URL. Any path requested through this client will be appended to this URL. This should usually be a URL injected usingArquillianResource
-
-
Method Details
-
get
Makes a GET request to a path and returns the response code- Parameters:
path- the path to request, relative to the baseUrl- Returns:
- the response code
-
getResponseMessage
Makes a GET request to a path and returns the response code- Parameters:
path- the path to request, relative to the baseUrl- Returns:
- the response message
-