Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added extensions for getting content header values #2247

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Added extensions for getting content header values #2247

merged 1 commit into from
Jul 30, 2024

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
9 checks passed
@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