public static int getContentLengthValue ( H2HeaderField header ) { if ( "content-length" . equalsIgnoreCase ( header . getName ( ) ) ) { return Integer . parseInt ( header . getValue ( ) ) ; } return - 1 ; }
Get the content length value from a header if one exists