<html>
    <head>
      <base href="https://bugs.webkit.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK][WPE] Support getting and setting HTTP headers in custom URI scheme handlers"
   href="https://bugs.webkit.org/show_bug.cgi?id=232653">232653</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[GTK][WPE] Support getting and setting HTTP headers in custom URI scheme handlers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Local Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKitGTK
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned@lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>liushuyu011@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply@webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This is a continuation of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - [GTK][WPE] Support setting status code and getting HTTP method in custom URI scheme handlers"
   href="show_bug.cgi?id=231880">https://bugs.webkit.org/show_bug.cgi?id=231880</a>.

Currently, there is no way for the URI scheme handler to get or set the HTTP headers.
As the last patch has proven, the URI scheme handler should also be considered to be HTTP-compliant since `fetch` or `XHR` calls to the URI scheme handler contains full HTTP information.

Those functionalities are necessary, because:
* The same functionality already exists in the macOS version of the WebKit implementation (by manipulating `NSHTTPURLResponse` and/or `NSHTTPURLRequest`)
* Could eliminate the usage of a local server: this could ease the development of semi-native apps, especially in the embedded environment
* Existing workaround to get HTTP headers from URI scheme is unreliable (see the bug report below)
* There are already feature requests for this: <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebKitURISchemeRequest is missing functions to get headers and methods"
   href="show_bug.cgi?id=231564">https://bugs.webkit.org/show_bug.cgi?id=231564</a>

After this patch is landed, <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] WebKitURISchemeRequest is missing functions to get headers and methods"
   href="show_bug.cgi?id=231564">https://bugs.webkit.org/show_bug.cgi?id=231564</a> will be completely fixed.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>