0
@RequestMapping(value = "/search", method = RequestMethod.GET)
public Mono<ResponseEntity<Void>> getStore(@RequestParam MultiValueMap<String, String> params)

    return getItem(params);
}



public Mono<ResponseEntity<Void>> getItem(MultiValueMap<String, String> allParams) {
    return myWebClient
            .get()
            .uri(uriBuilder -> uriBuilder
                    .path("/search/")
                    .queryParams(allParams)
                    .build())
            .retrieve()
            .toBodilessEntity();
}

This is my code. Im only interested in returning the headers. When I hit the endpoint from Postman, i see the correct headers but the request is not ending. It looks like its waiting for the body. Anyone please help me.

Lex Li
  • 60,503
  • 9
  • 116
  • 147
looke
  • 41
  • 1
  • 8

0 Answers0