-
Notifications
You must be signed in to change notification settings - Fork 28
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
Allow datamill client to perform PATCH requests #35
Conversation
Reimplemented client request core method to rely on httpclient rather than JDK UrlConnection, as the latter doesn't allow certain Http methods (i.e. PATCH). Adapted tests to new implementation.
URIBuilder uriBuilder = new URIBuilder(); | ||
|
||
|
||
int firstSlash = uri.indexOf('/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure I understand why you are doing all the string manipulation here - I think just create a URI straight from the string and let the URI implementations deal with it? Also, "theURI" and "anURI" are not good names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dunno what I was thinking sorry..late hours programming 😁
Applied review comments.
Applied more comments, refactored and cleanup.
Mock execute method in client tests so they run faster and don't send requests (which arent checked anyway)
(Hopefully) fix tests
Reimplemented client request core method to rely on httpclient rather than JDK UrlConnection, as the latter doesn't allow certain Http methods (i.e. PATCH).
Adapted tests to new implementation.