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

feat: header methods can now take many values #102

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

JosephLenton
Copy link
Owner

These are some quality of life changes to improve working with headers, and simplify header code.

Changes

  • TestServer::add_header can now take a wider array of types for the name and value, and converts internally.
  • TestRequest::add_header can now take a wider array of types for the name and value, and converts internally.
  • TestResponse::maybe_header can now take a wider array of types for the name, and converts internally.
  • TestResponse::header can now take a wider array of types for the name, and converts internally.
  • TestResponse::iter_headers_by_name can now take a wider array of types for the name, and converts internally.
  • TestResponse::contains_header can now take a wider array of types for the name, and converts internally.
  • TestResponse::assert_contains_header can now take a wider array of types for the name, and converts internally.
  • TestResponse::assert_header can now take a wider array of types for the name and value, and converts internally.

@JosephLenton JosephLenton merged commit c0063c6 into main Aug 23, 2024
@JosephLenton JosephLenton deleted the feat-add-header-into branch August 23, 2024 11:22
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