Returns the value of the named field parsed as a number.
This form of getHeaderField exists because some
connection types (e.g., http-ng) have pre-parsed
headers. Classes for that connection type can override this method
and short-circuit the parsing.
name | the name of the header field. | |
Default | the default value. |
Default value is returned if the field is
missing or malformed.
Diagram: URLConnection