Skip to content

Refactors HTTP response extensions#438

Merged
Keboo merged 1 commit intomasterfrom
cleanupHttpClient
Feb 20, 2026
Merged

Refactors HTTP response extensions#438
Keboo merged 1 commit intomasterfrom
cleanupHttpClient

Conversation

@Keboo
Copy link
Collaborator

@Keboo Keboo commented Feb 20, 2026

Renames the ReturnsResponse extension method to ReturnsHttpResponse for improved clarity and consistency in mocking HttpClient responses.

Removes the redundant ReturnsOK helper method to streamline the API, encouraging direct use of ReturnsHttpResponse with HttpStatusCode.OK.

Reorganizes the HTTP response extension methods into a dedicated file and adjusts their namespace for better code structure and discoverability.

@Keboo Keboo enabled auto-merge (squash) February 20, 2026 00:18
Renames `ReturnsResponse` to `ReturnsHttpResponse` for enhanced clarity and consistency within the HTTP client mocking API, explicitly indicating an HTTP response return type.

Removes the redundant `ReturnsOK` helper method, streamlining the API by encouraging direct use of `ReturnsHttpResponse` with `HttpStatusCode.OK`.

Refactors associated namespaces and renames the extension file for improved organization.
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.

1 participant