Skip to content

Conversation

@chullybun
Copy link
Collaborator

  • Enhancement: Extended the MockHttpClientResponse.With* methods to support optional media type parameter to enable specification of the Content-Type header value.
  • Enhancement: Added HttpResponseMessageAssertor.AssertContentTypeProblemJson to enable asserting that the content type is application/problem+json.
  • Fixed: HttpResponseMessageAssertor<TValue>.Value no longer asserts the content type as application/json by default as this could not be overridden; this should be asserted explicitly using AssertContentType(), AssertContentTypeJson(), AssertContentTypeProblemJson, etc.

- *Enhancement:* Extended the `MockHttpClientResponse.With*` methods to support optional _media type_ parameter to enable specification of the `Content-Type` header value.
- *Enhancement:* Added `HttpResponseMessageAssertor.AssertContentTypeProblemJson` to enable asserting that the content type is `application/problem+json`.
- *Fixed:* `HttpResponseMessageAssertor<TValue>.Value` no longer asserts the content type as `application/json` by default as this could not be overridden; this should be asserted explicitly using `AssertContentType()`, `AssertContentTypeJson()`, `AssertContentTypeProblemJson`, etc.
@chullybun chullybun merged commit 6ca7cfb into main Dec 4, 2025
3 of 4 checks passed
@chullybun chullybun deleted the v5.8.0 branch December 4, 2025 23:52
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.

2 participants