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

2.x.x: Fix multi-value query values and headers for APIGatewayV2 #24

Merged
merged 2 commits into from Mar 7, 2024

Conversation

adam-fowler
Copy link
Member

@adam-fowler adam-fowler commented Mar 1, 2024

Added new protocol requirements for APIRequest which return the query string and http headers in a generic form. Implement both of these for APIGatewayRequest and APIGatewayV2Request

There are no tests in this PR as the tests are in the XCTest PR #25 and adding any here will just produce merge issues

@adam-fowler adam-fowler changed the title v2) Use rawQueryString for APIGatewayV2 query values 2.x.x: Use rawQueryString for APIGatewayV2 query values Mar 1, 2024
@adam-fowler adam-fowler requested a review from Joannis March 1, 2024 15:30
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

Attention: Patch coverage is 83.72093% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 85.45%. Comparing base (a36500e) to head (593a3cc).

Files Patch % Lines
Sources/HummingbirdLambda/APIGatewayLambda.swift 76.66% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            2.x.x      #24      +/-   ##
==========================================
- Coverage   89.95%   85.45%   -4.50%     
==========================================
  Files           8        8              
  Lines         209      220      +11     
==========================================
  Hits          188      188              
- Misses         21       32      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@adam-fowler adam-fowler changed the title 2.x.x: Use rawQueryString for APIGatewayV2 query values 2.x.x: Fix multi-value query values and headers for APIGatewayV2 Mar 5, 2024
Copy link
Contributor

@Joannis Joannis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add some tests for this?

@adam-fowler adam-fowler merged commit b0a341c into 2.x.x Mar 7, 2024
3 of 5 checks passed
@adam-fowler adam-fowler deleted the 2.x.x-query-values branch March 7, 2024 17:41
adam-fowler added a commit that referenced this pull request Mar 12, 2024
* Fix multi-value query values in APIGatewayV2

* Add support for multivalue headers in APIGatewayV2
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.

None yet

2 participants