You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2024/11/12 19:29:00 UTC
[jira] [Commented] (NIFI-13982) Web client - body as string and get request URI for response entity
[ https://issues.apache.org/jira/browse/NIFI-13982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17897711#comment-17897711 ]
ASF subversion and git services commented on NIFI-13982:
--------------------------------------------------------
Commit 6c4ddf86310187e093070446412c4b2314bd324a in nifi's branch refs/heads/main from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=6c4ddf8631 ]
NIFI-13982 Updated web-client-api to support body as string and response URI (#9500)
Signed-off-by: David Handermann <ex...@apache.org>
> Web client - body as string and get request URI for response entity
> -------------------------------------------------------------------
>
> Key: NIFI-13982
> URL: https://issues.apache.org/jira/browse/NIFI-13982
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Minor
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> In the web client API, we currently have in HttpRequestBodySpec:
> {code:java}
> HttpRequestHeadersSpec body(InputStream inputStream, OptionalLong contentLength) {code}
> It would be convenient to also have:
> {code:java}
> HttpRequestHeadersSpec body(String body); {code}
> Especially when the payload is very small and easy to craft.
> In addition, in HttpResponseEntity, there is no way to know what endpoint has been accessed to generate that response. Having the possibility to retrieved the requested endpoint from the response entity might be useful when there is a separation between processors and controller services, in particular when generating the provenance events at processor level where adding the transit URI is useful for data lineage.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)