Skip to content

Conversation

@njnu-seafish
Copy link
Contributor

Purpose of the pull request

close #17693

Brief change log

add call.cancel() to cancel the HttpTask

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@SbloodyS SbloodyS added the improvement make more easy to user or prompt friendly label Nov 18, 2025
@SbloodyS SbloodyS added this to the 3.4.0 milestone Nov 18, 2025
@github-actions github-actions bot added the test label Nov 19, 2025
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
55.5% Coverage on New Code (required ≥ 60%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

* @throws IOException if a network error occurs or the request is canceled during execution
* @throws RuntimeException if an unexpected error occurs during request processing
*/
public static @NonNull OkHttpResult getWithCall(
Copy link
Member

@SbloodyS SbloodyS Nov 25, 2025

Choose a reason for hiding this comment

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

The current get method has implemented the AutoCloseable interface, and its connection is secure, so it doesn't need to be closed again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend improvement make more easy to user or prompt friendly test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][HttpTask] Support cancel http task

2 participants