Removal of blank spaces and unused imports/dependencies

Optimize picture download memory usage and add option to convert to unsigned url
Convert response data classes to final and add toString with `@Data`
Made sending requests dynamic by allowing passing of BodyHandler to class
This commit is contained in:
kohlerpop1
2024-11-22 22:31:23 -05:00
parent 2dc3001e7b
commit 14bf9c8c9b
10 changed files with 33 additions and 39 deletions

View File

@@ -225,7 +225,7 @@ public class TikTokLiveHttpClient implements LiveHttpClient
if (clientSettings.getApiKey() != null)
builder.withParam("apiKey", clientSettings.getApiKey());
var result = builder.build().toResponse();
var result = builder.build().toHttpResponse(HttpResponse.BodyHandlers.ofByteArray());
if (result.isFailure())
throw new TikTokSignServerException("Unable to get websocket connection credentials - "+result);