[
https://issues.apache.org/jira/browse/QUARKS-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15271202#comment-15271202
]
Saurabh Jinturkar commented on QUARKS-96:
-----------------------------------------
Hi [~dlaboss],
I have added postJson method similar to getJson method.
HttpRequester does not support POST method. Do you think any change is required
in that too?
...
String m = method.apply(t);
String uri = url.apply(t);
HttpUriRequest request;
switch (m) {
case HttpGet.METHOD_NAME:
request = new HttpGet(uri);
break;
case HttpDelete.METHOD_NAME:
request = new HttpDelete(uri);
break;
default:
throw new IllegalArgumentException();
}
...
I think I should add test case also.
Thanks!
> Add an HTTP POST utility method.
> --------------------------------
>
> Key: QUARKS-96
> URL: https://issues.apache.org/jira/browse/QUARKS-96
> Project: Quarks
> Issue Type: Improvement
> Components: Connectors
> Reporter: Daniel John Debrunner
> Assignee: Dale LaBossiere
> Labels: newbie
>
> HTTPStreams.requests can support any type of request but it would be useful
> to have a utility method for POST requests, similar to getJson - i.e., a
> postJson()
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)