original_string: protected function addHeaders(ResponseInterface $response, string $body): ResponseInterface
      {
          return $response
              ->andHeader('Content-Type', 'application/json')
              ->andHeader('Content-Length', (string)strlen($body));
      }
code: protected function addHeaders(ResponseInterface $response, string $body): ResponseInterface
      {
          return $response
              ->andHeader('Content-Type', 'application/json')
              ->andHeader('Content-Length', (string)strlen($body));
      }
code_tokens: protected function addHeaders ( ResponseInterface $ response , string $ body ) : ResponseInterface { return $ response -> andHeader ( 'Content-Type' , 'application/json' ) -> andHeader ( 'Content-Length' , ( string ) strlen ( $ body ) ) ; }
docstring: Add Content-Length header to response.
  
  @param ResponseInterface $response
  @param string            $body
  @return ResponseInterface
docstring_tokens: Add Content - Length header to response .