久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <legend id='lwFYC'><style id='lwFYC'><dir id='lwFYC'><q id='lwFYC'></q></dir></style></legend>

    <tfoot id='lwFYC'></tfoot>

        <bdo id='lwFYC'></bdo><ul id='lwFYC'></ul>

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

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

        通過 HTTP 將數(shù)據(jù)從瀏覽器流式傳輸?shù)椒?wù)器的方

        Method for streaming data from browser to server via HTTP(通過 HTTP 將數(shù)據(jù)從瀏覽器流式傳輸?shù)椒?wù)器的方法)
      2. <legend id='T5KR1'><style id='T5KR1'><dir id='T5KR1'><q id='T5KR1'></q></dir></style></legend>

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

          <i id='T5KR1'><tr id='T5KR1'><dt id='T5KR1'><q id='T5KR1'><span id='T5KR1'><b id='T5KR1'><form id='T5KR1'><ins id='T5KR1'></ins><ul id='T5KR1'></ul><sub id='T5KR1'></sub></form><legend id='T5KR1'></legend><bdo id='T5KR1'><pre id='T5KR1'><center id='T5KR1'></center></pre></bdo></b><th id='T5KR1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='T5KR1'><tfoot id='T5KR1'></tfoot><dl id='T5KR1'><fieldset id='T5KR1'></fieldset></dl></div>
              <tbody id='T5KR1'></tbody>

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

                1. 本文介紹了通過 HTTP 將數(shù)據(jù)從瀏覽器流式傳輸?shù)椒?wù)器的方法的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  是否有任何類似 XHR 的瀏覽器 API 可用于通過 HTTP 將二進(jìn)制流式傳輸?shù)椒?wù)器?

                  Are there any XHR-like browser APIs available for streaming binary to a server over HTTP?

                  我想隨著時(shí)間的推移發(fā)出 HTTP PUT 請求并以編程方式創(chuàng)建數(shù)據(jù).我不想一次創(chuàng)建所有這些數(shù)據(jù),因?yàn)閮?nèi)存中可能存在大量數(shù)據(jù).一些偽代碼來說明我的意思:

                  I want to make an HTTP PUT request and create data programmatically, over time. I don't want to create all this data at once, since there could be gigs of it sitting in memory. Some psueudo-code to illustrate what I'm getting at:

                  var dataGenerator = new DataGenerator(); // Generates 8KB UInt8Array every second
                  var streamToWriteTo;
                  http.put('/example', function (requestStream) {
                    streamToWriteTo = requestStream;
                  });
                  
                  dataGenerator.on('data', function (chunk) {
                    if (!streamToWriteTo) {
                      return;
                    }
                    streamToWriteTo.write(chunk);
                  });
                  

                  我目前有一個(gè) Web 套接字解決方案,但更喜歡常規(guī) HTTP,以便與一些現(xiàn)有的服務(wù)器端代碼更好地互操作.

                  I currently have a web socket solution in place instead, but would prefer regular HTTP for better interop with some existing server-side code.

                  我可以使用最前沿的瀏覽器 API.我正在查看 Fetch API,因?yàn)樗С终埱笳牡?ArrayBuffers、DataViews、Files 等.如果我能以某種方式偽造這些對象之一,以便我可以將 Fetch API 與動(dòng)態(tài)數(shù)據(jù)一起使用,那將適用于我.我嘗試創(chuàng)建一個(gè)代理對象,看看是否調(diào)用了我可以修補(bǔ)的方法.不幸的是,瀏覽器(至少在 Chrome 中)似乎正在閱讀本機(jī)代碼,而不是在 JS 領(lǐng)域.但是,如果我錯(cuò)了,請糾正我.

                  I can use bleeding edge browser APIs. I was looking at the Fetch API, as it supports ArrayBuffers, DataViews, Files, and such for request bodies. If I could somehow fake out one of these objects so that I could use the Fetch API with dynamic data, that would work for me. I tried creating a Proxy object to see if any methods were called that I could monkey patch. Unfortunately, it seems that the browser (at least in Chrome) is doing the reading in native code and not in JS land. But, please correct me if I'm wrong on that.

                  推薦答案



                  我目前正在尋找完全相同的東西(通過 Ajax 上傳).我目前的發(fā)現(xiàn),看起來好像我們正在搜索瀏覽器功能設(shè)計(jì)的最前沿;-)

                  XMLHttpRequest 定義 在步驟 4 bodyinit 這個(gè)內(nèi)容提取是(或可以是)一個(gè)可讀流.

                  我仍在(作為非網(wǎng)絡(luò)開發(fā)人員)搜索有關(guān)如何創(chuàng)建這樣的東西并將數(shù)據(jù)提供給可讀流"的另一端"的信息(即應(yīng)該是可寫流",但我還沒有沒找到).

                  如果您找到了實(shí)施這些設(shè)計(jì)計(jì)劃的方法,也許您在搜索方面做得更好,并且可以在此處發(fā)布.

                  ^5
                  斯文



                  I'm currently searching for exactly the same thing (upstreaming via Ajax). What I currently found, looks as if we are searching at the bleeding edge of browser's feature design ;-)

                  XMLHttpRequest definition tells in step 4 bodyinit that the content extraction of this is (or can be) a readablestream.

                  I'm still searching (as a non-webdeveloper) for information of how to create such a thing and to feed data into the "other end" of that "readablestream" (which namely should be a "writablestream", but I yet did not find that).

                  Maybe you are better in searching and can post here if you found a method to implement these design plans.

                  ^5
                  sven

                  這篇關(guān)于通過 HTTP 將數(shù)據(jù)從瀏覽器流式傳輸?shù)椒?wù)器的方法的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調(diào)用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調(diào)用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標(biāo)頭) - IT屋-程序員軟件開發(fā)技術(shù)分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內(nèi)容)

                        <tbody id='4mIwi'></tbody>

                      <small id='4mIwi'></small><noframes id='4mIwi'>

                      <legend id='4mIwi'><style id='4mIwi'><dir id='4mIwi'><q id='4mIwi'></q></dir></style></legend>
                        <bdo id='4mIwi'></bdo><ul id='4mIwi'></ul>
                        1. <tfoot id='4mIwi'></tfoot>
                        2. <i id='4mIwi'><tr id='4mIwi'><dt id='4mIwi'><q id='4mIwi'><span id='4mIwi'><b id='4mIwi'><form id='4mIwi'><ins id='4mIwi'></ins><ul id='4mIwi'></ul><sub id='4mIwi'></sub></form><legend id='4mIwi'></legend><bdo id='4mIwi'><pre id='4mIwi'><center id='4mIwi'></center></pre></bdo></b><th id='4mIwi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4mIwi'><tfoot id='4mIwi'></tfoot><dl id='4mIwi'><fieldset id='4mIwi'></fieldset></dl></div>
                          • 主站蜘蛛池模板: 二区中文 | 一区二区三区精品在线 | 久久综合九九 | 国产午夜精品一区二区三区四区 | 精品欧美二区 | 免费视频99 | 中文字幕日韩欧美一区二区三区 | 亚洲福利电影网 | 久久不射网 | 欧美精品区 | 欧美国产精品一区二区 | 99国产视频 | 欧美综合在线视频 | 狠狠干美女 | 亚洲视频一区二区三区四区 | 91成人在线视频 | 国产日韩精品在线 | 免费国产一区二区 | 日本一区二区三区视频在线 | 国产激情91久久精品导航 | 欧美午夜视频 | 欧美美女爱爱 | 在线不卡视频 | 久久福利电影 | 国产精品日日做人人爱 | 久久久久久国产精品 | 一区二区三区四区不卡视频 | 国产精品欧美一区二区三区 | 一级做a爰片性色毛片视频停止 | 91精品一区| 天天色综| 欧美第一区 | 午夜av电影 | 国产一区二区三区四区 | 亚洲一区免费 | 在线高清免费观看视频 | 在线免费观看黄视频 | 天天躁日日躁狠狠躁2018小说 | 久久久日韩精品一区二区三区 | 美女黄频 | 日韩伦理电影免费在线观看 |