Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8222727

HttpClient: improve logging of connection usage and headers

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 13
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      1. Sometime it can be useful to know on which connection a particular request was sent, especially for HTTP/1.1.
      The ExchangeImpl has this information - the Http1Exchange gets it in its constructor, but it might not be connected yet.
      The Http1Request also has this information - so it could also log information about the underlying channel at the same time it logs the request headers.
      (AFAICS, at that time, the connection should be connected so port information should be availaible).
      2. When request headers are logged, the request line is included.
      When response headers are logged, the status line is not included. This is inconsistent, and such basic information as status code should preferably be logged at the same time than the response headers too.

        Attachments

          Activity

            People

            • Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              dfuchs Daniel Fuchs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: