Github user tillrohrmann commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6147#discussion_r195110485
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestClient.java ---
    @@ -197,6 +208,88 @@ public void shutdown(Time timeout) {
                                executor);
        }
     
    +   public <M extends MessageHeaders<R, P, U>, U extends MessageParameters, 
R extends RequestBody, P extends ResponseBody> CompletableFuture<P> sendRequest(
    +                   String targetAddress,
    +                   int targetPort,
    +                   M messageHeaders,
    +                   U messageParameters,
    +                   R request,
    +                   Collection<Path> jars,
    +                   Collection<Path> userArtifacts) throws IOException {
    --- End diff --
    
    I didn't mean to use Netty's `FileUpload` class but creating our own where 
we could specify the content type and other information. But we can begin also 
with `Collection<Path>` and encode what kind of file it is in the file name, 
for example.


---

Reply via email to