We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is related to Proposal [1]. Instead of doing the below,
resource function get hello(@http:Header string x\-rate\-limit\-id, @http:Header int x\-rate\-limit\-remaining, @http:Header string[] x\-rate\-limit\-types) returns string { }
Users should be able to do the below,
public type RateLimitHeaders record {| string x\-rate\-limit\-id; int x\-rate\-limit\-remaining; string[] x\-rate\-limit\-types; |}; resource function get hello(@http:Headers RateLimitHeaders rateLimitHeaders) returns string { }
[1] https://github.com/ballerina-platform/module-ballerina-http/blob/master/docs/proposals/typed-headers.md
The text was updated successfully, but these errors were encountered:
chamil321
Successfully merging a pull request may close this issue.
This is related to Proposal [1]. Instead of doing the below,
Users should be able to do the below,
[1] https://github.com/ballerina-platform/module-ballerina-http/blob/master/docs/proposals/typed-headers.md
The text was updated successfully, but these errors were encountered: