original_string: private static function readRequestBody(int $length, \Closure $body, string &$buffer, bool &$eof): string
      {
          if (!$eof && \strlen($buffer) < $length) {
              if (!\is_string($data = $body($length))) {
                  throw new TransportException(sprintf('The return value of the "body" option callback must be a string, %s returned.', \gettype($data)));
              }
  
              $buffer .= $data;
              $eof = '' === $data;
          }
  
          $data = substr($buffer, 0, $length);
          $buffer = substr($buffer, $length);
  
          return $data;
      }
code: private static function readRequestBody(int $length, \Closure $body, string &$buffer, bool &$eof): string
      {
          if (!$eof && \strlen($buffer) < $length) {
              if (!\is_string($data = $body($length))) {
                  throw new TransportException(sprintf('The return value of the "body" option callback must be a string, %s returned.', \gettype($data)));
              }
  
              $buffer .= $data;
              $eof = '' === $data;
          }
  
          $data = substr($buffer, 0, $length);
          $buffer = substr($buffer, $length);
  
          return $data;
      }
code_tokens: private static function readRequestBody ( int $ length , \ Closure $ body , string & $ buffer , bool & $ eof ) : string { if ( ! $ eof && \ strlen ( $ buffer ) < $ length ) { if ( ! \ is_string ( $ data = $ body ( $ length ) ) ) { throw new TransportException ( sprintf ( 'The return value of the "body" option callback must be a string, %s returned.' , \ gettype ( $ data ) ) ) ; } $ buffer .= $ data ; $ eof = '' === $ data ; } $ data = substr ( $ buffer , 0 , $ length ) ; $ buffer = substr ( $ buffer , $ length ) ; return $ data ; }
docstring: Wraps the request's body callback to allow it to return strings longer than curl requested.
docstring_tokens: Wraps the request s body callback to allow it to return strings longer than curl requested .