<small id='66PbQ'></small><noframes id='66PbQ'>

        <i id='66PbQ'><tr id='66PbQ'><dt id='66PbQ'><q id='66PbQ'><span id='66PbQ'><b id='66PbQ'><form id='66PbQ'><ins id='66PbQ'></ins><ul id='66PbQ'></ul><sub id='66PbQ'></sub></form><legend id='66PbQ'></legend><bdo id='66PbQ'><pre id='66PbQ'><center id='66PbQ'></center></pre></bdo></b><th id='66PbQ'></th></span></q></dt></tr></i><div id='66PbQ'><tfoot id='66PbQ'></tfoot><dl id='66PbQ'><fieldset id='66PbQ'></fieldset></dl></div>

        <legend id='66PbQ'><style id='66PbQ'><dir id='66PbQ'><q id='66PbQ'></q></dir></style></legend>

        <tfoot id='66PbQ'></tfoot>
        • <bdo id='66PbQ'></bdo><ul id='66PbQ'></ul>
      1. 有没有办法强制 XMLHttpRequest 使用 HTTP/1.1?

        时间:2023-10-02

          <i id='XSZi3'><tr id='XSZi3'><dt id='XSZi3'><q id='XSZi3'><span id='XSZi3'><b id='XSZi3'><form id='XSZi3'><ins id='XSZi3'></ins><ul id='XSZi3'></ul><sub id='XSZi3'></sub></form><legend id='XSZi3'></legend><bdo id='XSZi3'><pre id='XSZi3'><center id='XSZi3'></center></pre></bdo></b><th id='XSZi3'></th></span></q></dt></tr></i><div id='XSZi3'><tfoot id='XSZi3'></tfoot><dl id='XSZi3'><fieldset id='XSZi3'></fieldset></dl></div>
        1. <tfoot id='XSZi3'></tfoot>

          <small id='XSZi3'></small><noframes id='XSZi3'>

            <tbody id='XSZi3'></tbody>

                  <bdo id='XSZi3'></bdo><ul id='XSZi3'></ul>
                • <legend id='XSZi3'><style id='XSZi3'><dir id='XSZi3'><q id='XSZi3'></q></dir></style></legend>
                  本文介绍了有没有办法强制 XMLHttpRequest 使用 HTTP/1.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  I have a server endpoint that supports both HTTP/1.1 and HTTP2. For testing purposes, I want to try downloading content from the endpoint with both HTTP/1.1 and HTTP2 connections, possibly at the same time.

                  When I request data from the endpoint with an XMLHttpRequest, it automatically uses HTTP2, without me including the Connection: Upgrade header.

                  Is there a way to force an XMLHttpRequest to use HTTP/1.1 for the underlying TCP connection? What about other protocols, such as Quic or SPDY?

                  解决方案

                  No.

                  From Remy Lebeau's comment:

                  The browser decides which protocol it wants to use as an implementation detail of the XmlHttpRequest object. You can't force a particular choice from inside your script.

                  这篇关于有没有办法强制 XMLHttpRequest 使用 HTTP/1.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:javascript fetch 自动将 http 更改为 https 下一篇:如何从 fetch javascript 请求的响应中获取数据

                  相关文章

                  <tfoot id='u77m7'></tfoot>
                  • <bdo id='u77m7'></bdo><ul id='u77m7'></ul>

                    <small id='u77m7'></small><noframes id='u77m7'>

                  1. <legend id='u77m7'><style id='u77m7'><dir id='u77m7'><q id='u77m7'></q></dir></style></legend>
                    <i id='u77m7'><tr id='u77m7'><dt id='u77m7'><q id='u77m7'><span id='u77m7'><b id='u77m7'><form id='u77m7'><ins id='u77m7'></ins><ul id='u77m7'></ul><sub id='u77m7'></sub></form><legend id='u77m7'></legend><bdo id='u77m7'><pre id='u77m7'><center id='u77m7'></center></pre></bdo></b><th id='u77m7'></th></span></q></dt></tr></i><div id='u77m7'><tfoot id='u77m7'></tfoot><dl id='u77m7'><fieldset id='u77m7'></fieldset></dl></div>