I am working on the springboot application where I need to add a header to request API where they used org.springframework.http.HttpHeaders to set the Header values to the request.
I can see they used below code for setting the string value header.
HttpHeaders headers = new HttpHeaders();
headers.set("correlationId", "12232324545x32321");
My requirement is to add a header named x-ms-documentdb-partitionkey
and it expect the value as an array:
x-ms-documentdb-partitionkey = ["file1"]
How can set the above using using the HttpHeaders
. I refer the below the Javadocs. I could not able to figure out the right way to do.
Thanks