Skip to content

Put added in custom request.#206

Merged
deepak2016 merged 2 commits intodevfrom
custom-request-fix
Jan 22, 2019
Merged

Put added in custom request.#206
deepak2016 merged 2 commits intodevfrom
custom-request-fix

Conversation

@NakulSabharwal
Copy link
Copy Markdown
Contributor

Fixes #185

Changes proposed in this pull request

  • Put functionality added in Custom request.


/**
* Test PUT with a custom request for both serialized and JSON content
*/
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you added two put methods, but only one test, can you please add one more test covering other function?

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.

Updated tests to cover both Put functions added.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

hey, ideally you should create two separate tests for two methods.

@darrelmiller
Copy link
Copy Markdown
Contributor

I'd like to discuss further why we actually have a customRequest class. When we move to the Apache HttpClient library that has a native request object, will this be needed anymore? The overall idea is that we can convert the output of a Request Builder to a native request object , so that users can do what ever manipulation you want.

Adding PUT to the customRequest class feels like we are slowly re-inventing a native HTTP library.

@deepak2016
Copy link
Copy Markdown
Contributor

As discussed, we are going ahead and merging this pull request.

@deepak2016 deepak2016 merged commit 0fd72e6 into dev Jan 22, 2019
@NakulSabharwal NakulSabharwal deleted the custom-request-fix branch February 1, 2019 06:45
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.

PUT method in CustomResquest class

4 participants