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

http capability: add body_form to http request builder #296

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

andrew-goldie
Copy link
Contributor

@andrew-goldie andrew-goldie commented Jan 21, 2025

For the http capability... Following the same pattern as constructing other body types (body as bytes plus specific content-type header), this little change adds the ability to create a body for posting forms. Any name-value pair structure that can be serialised and url-encoded can be used as the data type. The doc comment example uses a HashMap for instance.

@andrew-goldie andrew-goldie changed the title add body_form to http request builder http capability: add body_form to http request builder Jan 21, 2025
Copy link
Member

@StuartHarris StuartHarris left a comment

Choose a reason for hiding this comment

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

Thanks @andrew-goldie! ❤️

@StuartHarris StuartHarris merged commit 98daca1 into redbadger:master Jan 21, 2025
9 checks passed
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