public long contentLength ( ) { String contentLengthHeader = headers ( ) . get ( "content-length" ) ; if ( contentLengthHeader != null ) { return Long . parseLong ( contentLengthHeader ) ; } else { return - 1 ; } }
Returns the content length of this request setBody or - 1 if header is not present .