Object
XHttpClient
Class which provides wrapping for basic HttpClient operations and takes care of creating
HttpRequest with proper BodyHandlers.
Requires Java 11 or higher.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
httpClient
Default global instance of the client
-
-
Constructor Details
-
XHttpClient
public XHttpClient()
-
-
Method Details
-
getLines
Calls given HTTP API and returns output as Stream of lines. -
getString
-
getFile
Calls given HTTP API and saves output to a given file
-