Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-122175

Add QHttpHeaders API to replace() a header

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 6.8.0 FF
    • 6.7
    • Network: HTTP
    • None

    Description

      While porting Qt internals to use QHttpHeaders class, this has been a recurring pattern:

      h.removeAll(QHttpHeaders::WellKnownHeader::ContentType);
      h.append(QHttpHeaders::WellKnownHeader::ContentType, "application/x-empty");
      

      In other words; remove all possible header 'name' values, and then add a new value, and then append a new 'name' + 'value'.

      Implementing this is a small task, but first some thought needs to go into what's the API like.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vuokko Juha Vuolle
            vuokko Juha Vuolle
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes