Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-610

HttpMethodBase.getResponseBodyAsString(long limit)

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.1 Alpha 1
    • 3.1 RC1
    • None
    • None

    Description

      Currently HttpMethodBase.getResponseBodyAsString() prints warning in log, and suggests using getResponseStream(). However getResponseBodyAsString() is extremely useful (as it is easy to use). So my wish is to have method

      getResponseBodyAsString(long limit)

      that should throw HttpException if response size exceeds specified limit.

      Same things with getResponseBody(long limit) .

      Original methods should be deprecated because of danger, explained in javadoc.

      Attachments

        1. patch-take2.txt
          8 kB
          Ortwin Glueck

        Activity

          People

            oglueck Ortwin Glueck
            yozh Stepan Koltsov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: