I would like to add multiple headers to a java HTTP request, I think this is possible using the headers() method in the httpRequest builder, but I can't seem to figure out how:
HttpRequest request = HttpRequest.newBuilder()
.POST()
.headers(/*add mutple headers here*/)
.uri(getUrl())
.build();