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

Adding support for HTTP body binding #1712

Merged
merged 3 commits into from Jul 11, 2023
Merged

Conversation

fabiocav
Copy link
Member

@fabiocav fabiocav commented Jul 3, 2023

Changes in this PR

This PR introduces the ability to map custom attributes to converters, and leverages that capability to introduce a new attribute FromBodyAttribute) in the HTTP extension, adding binding support for function parameters using the request body as the source (e.g., ability to bind, string, byte[], POCOs).

resolves #164

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

@fabiocav
Copy link
Member Author

fabiocav commented Jul 3, 2023

@mattchenderson this will require doc updates. It would be great to avoid blocking on that, so happy to create a separate item if can track this separately.

@fabiocav fabiocav force-pushed the fabiocav/httpbindingsource branch from 11f7550 to 717b42e Compare July 3, 2023 22:49
@fabiocav fabiocav changed the title Fabiocav/httpbindingsource Adding support for HTTP body binding Jul 4, 2023
Copy link
Member

@kshyju kshyju left a comment

Choose a reason for hiding this comment

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

Looks like tests are failing.

@fabiocav fabiocav force-pushed the fabiocav/httpbindingsource branch 2 times, most recently from 0633f6a to 56945de Compare July 10, 2023 17:07
extensions/Worker.Extensions.Http/src/FromBodyConverter.cs Outdated Show resolved Hide resolved
test/E2ETests/E2ETests/HttpEndToEndTests.cs Outdated Show resolved Hide resolved
@fabiocav fabiocav merged commit d54452e into main Jul 11, 2023
25 checks passed
@fabiocav fabiocav deleted the fabiocav/httpbindingsource branch July 11, 2023 17:21
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.

HttpTrigger with complex type does not work
5 participants