I have a spring boot project which has some Rest APIs in it. I have two custom headers named request_date and tenant respectively.
I have the following get request defined in my service:The result is:I also have made the same post request with Postman, but everything works, so the local server works.
I'm trying the new HTTP client API from JDK 11, specifically its asynchronous way of executing requests. But there is something that I'm not sure I understand (sort of an implementation aspect). In the documentation, it says:
I know that requests.get() provides an HTTP interface so that the programmer can make various requests to a HTTP server.