<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?

        Is there a way to force an XMLHttpRequest to use HTTP/1.1?(有没有办法强制 XMLHttpRequest 使用 HTTP/1.1?)

          <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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Fetch multiple links inside foreach loop(在 foreach 循环中获取多个链接)
                  Backbone Fetch Request is OPTIONS method(Backbone Fetch Request 是 OPTIONS 方法)
                  Fetch API leaks memory in Chrome(Fetch API 在 Chrome 中泄漏内存)
                  How can I download and save a file using the Fetch API? (Node.js)(如何使用 Fetch API 下载和保存文件?(Node.js))
                  Send blob data to node using fetch, multer, express(使用 fetch、multer、express 将 blob 数据发送到节点)
                  Sending a custom User-Agent string along with my headers (fetch)(发送自定义用户代理字符串以及我的标头(获取))
                  <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>
                          <tbody id='u77m7'></tbody>
                        <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>