Skip to content

fix: Dispose HTTP requests#66

Merged
HofmeisterAn merged 2 commits intomainfrom
feature/improve-http-response-dispose
Feb 26, 2026
Merged

fix: Dispose HTTP requests#66
HofmeisterAn merged 2 commits intomainfrom
feature/improve-http-response-dispose

Conversation

@HofmeisterAn
Copy link
Collaborator

The previous implementation didn't dispose of HTTP responses when failures occurred. This PR fixes that by properly disposing of those instances before throwing an exception. Also, when the library returned streams, disposing of the stream did not dispose of the underlying HTTP response, and the response wasn't accessible to the developer. Now, disposing of the stream will also dispose of the corresponding HTTP response.

@HofmeisterAn HofmeisterAn added bug Something isn't working enhancement New feature or request labels Feb 25, 2026
@HofmeisterAn HofmeisterAn merged commit 7ed7077 into main Feb 26, 2026
15 checks passed
@HofmeisterAn HofmeisterAn deleted the feature/improve-http-response-dispose branch February 26, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant