File tree Expand file tree Collapse file tree
impl/http/src/main/java/io/serverlessworkflow/impl/executors/http Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import io .serverlessworkflow .impl .WorkflowUtils ;
2222import io .serverlessworkflow .impl .WorkflowValueResolver ;
2323import io .serverlessworkflow .impl .executors .CallableTask ;
24- import jakarta .ws .rs .client .Client ;
2524import jakarta .ws .rs .client .Invocation .Builder ;
2625import jakarta .ws .rs .client .WebTarget ;
2726import java .net .URI ;
@@ -70,10 +69,7 @@ public CompletableFuture<WorkflowModel> apply(
7069 p .apply (workflow , taskContext , input )))
7170 .orElse (uriSupplier .apply (workflow , taskContext , input ));
7271
73- Client client = HttpClientResolver .client (workflow , taskContext );
74-
75- WebTarget target = client .target (uri );
76-
72+ WebTarget target = HttpClientResolver .client (workflow , taskContext ).target (uri );
7773 for (Entry <String , Object > entry :
7874 queryMap .map (q -> q .apply (workflow , taskContext , input )).orElse (Map .of ()).entrySet ()) {
7975 target = target .queryParam (entry .getKey (), entry .getValue ());
You can’t perform that action at this time.
0 commit comments