Skip to content

feat: add okhttp callTimeout and writeTimeout#26

Merged
BronLau merged 2 commits intomasterfrom
feature-add-okhttp
Dec 2, 2022
Merged

feat: add okhttp callTimeout and writeTimeout#26
BronLau merged 2 commits intomasterfrom
feature-add-okhttp

Conversation

@BronLau
Copy link
Copy Markdown
Contributor

@BronLau BronLau commented Dec 1, 2022

  • add okhttp callTimeout and writeTimeout

HttpResult<Attachment> result = getDefaultHttpClient().post(String.format(PATH, datasheetId), httpHeader, formData, new GenericTypeReference<HttpResult<Attachment>>() {});
return result.getData();
} catch (HttpClientException e) {
throw new ApiException("timeout retry");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Client Exception, e

@BronLau BronLau merged commit b0ce05e into master Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants