I can not find documentation for this method despite there is many code examples on the internet that uses this method, someone can tell me please where to find it? there is also a method "getElements" that i can not find in java documentation.

1

There are 1 best solutions below

0
OneCricketeer On BEST ANSWER

HttpMessage is an interface that CloseableHttpResponse implements. That's where the getHeaders method comes from

https://hc.apache.org/httpcomponents-client-4.5.x/httpclient/apidocs/org/apache/http/client/methods/CloseableHttpResponse.html