Skip to content

Fixes #328: Allow injecting mapper used for request serialization#329

Open
alechenninger wants to merge 1 commit into
lightblue-platform:masterfrom
alechenninger:request-mapper
Open

Fixes #328: Allow injecting mapper used for request serialization#329
alechenninger wants to merge 1 commit into
lightblue-platform:masterfrom
alechenninger:request-mapper

Conversation

@alechenninger

Copy link
Copy Markdown
Contributor

#328

TODO:

  • Does removing the content length header from request prevent persistent connections?

@coveralls

coveralls commented Jan 12, 2017

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-68.8%) to 0.0% when pulling 777b596 on alechenninger:request-mapper into a658cfc on lightblue-platform:master.

/**
* Requst body as string, defaults to getBodyJson().toString()
*/
@Deprecated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why? Or perhaps what should be used instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

getBodyJson should be used instead. This uses a default global object mapper so it can't be configured. I'll add a comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well, it can be configured, but isn't configured the same as for responses. Details in #328

@bvulaj

bvulaj commented Nov 1, 2017

Copy link
Copy Markdown
Member

@alechenninger @dcrissman Should we have merged this forever ago?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants