@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.