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

Feature: Add option to customize Body serialization #96

Closed
paulpdaniels opened this issue Mar 27, 2018 · 2 comments · Fixed by #103
Closed

Feature: Add option to customize Body serialization #96

paulpdaniels opened this issue Mar 27, 2018 · 2 comments · Fixed by #103
Labels
feature Feature: new addition or enhancement to existing solutions
Milestone

Comments

@paulpdaniels
Copy link
Contributor

So I noticed that here rest-link seems to be automatically assuming the body is json and serializing it as such. It would be nice if that were configurable so that I could instead pass in a multipart/form-data.

I'd be willing to PR it, I think the easiest way would be to just mimic how bodyBuilder is created and have another option called bodySerializer that defaults to JSON.

@ghost ghost added the feature Feature: new addition or enhancement to existing solutions label Mar 27, 2018
@paulpdaniels paulpdaniels changed the title Add option to customer Body serialization Feature: Add option to customer Body serialization Mar 27, 2018
@ghost ghost added the feature Feature: new addition or enhancement to existing solutions label Mar 27, 2018
@fbartho
Copy link
Collaborator

fbartho commented Apr 25, 2018

This is a great idea, I'd support this feature being added. I'd be happy to help review a PR that does this.

@fbartho fbartho changed the title Feature: Add option to customer Body serialization Feature: Add option to customize Body serialization Apr 25, 2018
@ghost ghost added the feature Feature: new addition or enhancement to existing solutions label Apr 25, 2018
@isopterix
Copy link

I think this is possibly related to my new issue #107 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature: new addition or enhancement to existing solutions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants