Headers are always Strings. Even the getIntHeader() method always takes a String representing the name of the header; so what is the int about?
Headers are always Strings. Even the getIntHeader() method always takes a String representing the
Share
getIntHeader()accepts the name of the header and returns the value of the header as an int, if it is possible to do so. So for instance if you had a header “my_header” whose value was equal to the String “307”,getIntHeader("my_header")would return the int 307, whereasgetHeader("my_header")would simply return the String.See the JavaDoc.