Skip to content

Conversation

@jizc
Copy link
Contributor

@jizc jizc commented Jul 24, 2024

Description

I liked the new extensions added in #2221, but immediately wished for the same extensions for the ContentHeaders collection. This PR adds GetContentHeaderValue and GetContentHeaderValues extension methods.

I also removed the ? after HeaderParameter.Value properties in the extensions, as they are no longer needed after #2241.

Purpose

This pull request is a:

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@alexeyzimarev alexeyzimarev merged commit 6391624 into restsharp:dev Jul 30, 2024
@jizc jizc deleted the pr/added-content-header-extensions branch July 30, 2024 08:18
@jizc
Copy link
Contributor Author

jizc commented Jul 30, 2024

Thank you for merging the PR 🎉

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