protected function getBodyContentLength( ResponseInterface $response ) {
		$content_length = $response->getHeaderLine( 'Content-Length' );

		if ( ! $content_length ) {
			$body = $this->getBody( $response );
			$content_length = $body->getSize();
		}

		if ( ! is_numeric( $content_length ) ) {
			$content_length = 0;
		}

		return (integer) $content_length;
	}
protected function getBodyContentLength( ResponseInterface $response ) {
		$content_length = $response->getHeaderLine( 'Content-Length' );

		if ( ! $content_length ) {
			$body = $this->getBody( $response );
			$content_length = $body->getSize();
		}

		if ( ! is_numeric( $content_length ) ) {
			$content_length = 0;
		}

		return (integer) $content_length;
	}
protected function getBodyContentLength ( ResponseInterface $ response ) { $ content_length = $ response -> getHeaderLine ( 'Content-Length' ) ; if ( ! $ content_length ) { $ body = $ this -> getBody ( $ response ) ; $ content_length = $ body -> getSize ( ) ; } if ( ! is_numeric ( $ content_length ) ) { $ content_length = 0 ; } return ( integer ) $ content_length ; }
Get a response's body's content length.

@codeCoverageIgnore
@param  ResponseInterface $response
@return integer
Get a response s body s content length .