並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 56件

新着順 人気順

fetchの検索結果1 - 40 件 / 56件

 fetch56 javascript  library  article    WebHTTPHTTP - nwtgck / Ryo Ota  
  • Webブラウザ上で純粋なHTTPだけで単方向リアルタイム通信を可能にするHTTPのストリーミングアップロードが遂にやってくる - nwtgck / Ryo Ota

    Web標準のHTTPクライアントfetch()でストリーミングしながらアップロードできるようになる。

      Webブラウザ上で純粋なHTTPだけで単方向リアルタイム通信を可能にするHTTPのストリーミングアップロードが遂にやってくる - nwtgck / Ryo Ota
    • AVに登場したレアなビルトインコンロを特定したツイートに女優が「私見て!」しみけん、監督などスタッフ勢が反応する事態に


      kebiyama @kebiyama 183194204211224232242/183/31 kebiyama @kebiyama HSEX 退 pic.twitter.com/EfZ6fq6t35 2019-12-03 23:01:36
        AVに登場したレアなビルトインコンロを特定したツイートに女優が「私見て!」しみけん、監督などスタッフ勢が反応する事態に
      • パンチラ動画のカリスマ撮り師「mr.研修生さん」の逮捕に寄せて

        • XMLHttpRequest とはなんだったのか | blog.jxck.io


          Intro Fetch API IE XMLHttpRequest  使 XMLHttpRequest   XHR   API  Web API  W3C/WHATWG  API  Microsoft  API   Web API  XHR  XmlHttpRequest  XMLHTTPRequest  XMLHttpRequest  Microsoft 
            XMLHttpRequest とはなんだったのか | blog.jxck.io
          • Ajaxから始まった一つの時代の終わり


            idea稿RemixApp Router 2022RemixNext.jsApp RouterRemix[1]調 RemixApp RouterProgressively Enhanced SPAPESPAPESPA PESPARemix
              Ajaxから始まった一つの時代の終わり
            • Deno のめっちゃ難しいバグを修正した - Qiita


              20224Deno  fetch API 使 300KB  1.20.6 1.21.0 1.20.6  1.21.0 1 fetch  Deno Land  issue stale  ( issue ) 2Deno st
                Deno のめっちゃ難しいバグを修正した - Qiita
              • 【偏愛】サッポロ一番 塩らーめん|小野瀬雅生

                サッポロ一番 塩らーめんが好きです。偏愛と云うよりも信仰に近いくらいかも知れない。他のインスタントラーメンには申し訳ないけれど、サッポロ一番 塩らーめん一択です。人生でこれまでにどれだけサッポロ一番 塩らーめんを食べて来ただろうか。僕の身体の何分の一かはサッポロ一番 塩らーめんで出来ているのではないか。そう思うくらいに食べて来た。 サンヨー食品のサッポロ一番 塩らーめんの発売は1971年(昭和46年)年9月1日とある。その直後の9月18日に日清食品からカップヌードルが発売になっている。7月にはマクドナルドの日本1号店が銀座にオープン。現在まで繋がっている色々な物事がスタートした年だ。 1971年は僕個人にとってトピックの多い年だ。映画では「ゴジラ対ヘドラ」「ガメラ対深海怪獣ジグラ」、テレビでは「帰ってきたウルトラマン」「仮面ライダー」「宇宙猿人ゴリ」「シルバー仮面」「ミラーマン」「天才バカ

                  【偏愛】サッポロ一番 塩らーめん|小野瀬雅生
                • Fetch APIは「PATCH」だけ大文字と小文字の挙動が異なる


                  const url = "https://fetch-api-normalization.deno.dev"; await fetch(url, { method: "PATCH" }); await fetch(url, { method: "patch" });  PATCH   GET  POST  PATCH    Fetch API  HTTP  PATCH  patch 
                    Fetch APIは「PATCH」だけ大文字と小文字の挙動が異なる
                  • React がネイティブの fetch を patch しようとしてる話

                    Next.js のドキュメントには次のように記載されてる React will automatically cache fetch requests with the same input in a temporary cache. This is an optimization to avoid the same data being fetched more than once during a rendering pass - and is especially useful when multiple components need to fetch the same data. React が自動的に fetch request をキャッシュすると書いてある。

                      React がネイティブの fetch を patch しようとしてる話
                    • データフェッチはuseEffectの出番じゃないなら、結局何を使えばいいんだ

                      ショートアンサー React 18 からのフックである、useSyncExternalStore を使えばいいようです。 ※ useEffect がまったくだめだというわけではありません。 ※ クライアントサイドレンダリングのみを考えています。サーバーサイドレンダリングを考慮すると違った答えになるかもしれません。 サンプルコード 次のような useData フックを作ってみます。 JSON API の GET レスポンスを返すシンプルなものです。 実験をしやすいように、リクエスト URL を変えるボタンを置いてあります。 import { useEffect, useState } from "react" export function SearchResults() { const [id, setID] = useState(1) const todo = useData(`http

                        データフェッチはuseEffectの出番じゃないなら、結局何を使えばいいんだ
                      • Denoよどこへ行く - keroxpのScrapbox


                        Deno 使 DenoDeno DenoWeb fetch APIAPI windowwebcryptoWebGPU使API  Deno姿JavaScriptTC39 Deno
                          Denoよどこへ行く - keroxpのScrapbox
                        • Safe Data Fetching in Modern JavaScript

                          How to Build: Visually Building with AI webinar today @ 10 am PST. Register Now

                            Safe Data Fetching in Modern JavaScript
                          • Project dead? · Issue #3930 · axios/axios

                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                              Project dead? · Issue #3930 · axios/axios
                            • Node.js fetch の内部の話 - from scratch

                              前置き この記事は リクルートエンジニアアドベントカレンダーの3日目の記事です。 Recruit Engineers Advent Calendar 2022 - Adventar ちなみにココで書いたやつを一部抜粋させていただいております(ネタ切れにより過去投稿を利用してしまっております。。。すいません。。。) www.codegrid.net fetch が Node v18 から試験的にサポートされた ブラウザでは数年前から採用されていた HTTP リクエストを行う関数の fetch が global 空間に関数として作成されました。使うだけなら特に何のフラグもいりません、その代わり使うと Experimental であることを知らせる Warnings が出ます。 // fetch.mjs const response = await fetch('https://api.gith

                                Node.js fetch の内部の話 - from scratch
                              • Node.js — Node.js 18 is now available!

                                We’re excited to announce that Node.js 18 was released today! Highlights include the update of the V8 JavaScript engine to 10.1, global fetch enabled by default, and a core test runner module. Initially, Node.js 18 will replace Node.js 17 as our ‘Current’ release line. As per the release schedule, Node.js 18 will be the 'Current' release for the next 6 months and then promoted to Long-term Support

                                  Node.js — Node.js 18 is now available!
                                • React Hooks for Data Fetching – SWR

                                  import useSWR from 'swr' function Profile() { const { data, error, isLoading } = useSWR('/api/user', fetcher) if (error) return <div>failed to load</div> if (isLoading) return <div>loading...</div> return <div>hello {data.name}!</div> } In this example, the useSWR hook accepts a key string and a fetcher function. key is a unique identifier of the data (normally the API URL) and will be passed to f

                                    React Hooks for Data Fetching – SWR
                                  • GitHub - TanStack/query: 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.

                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                      GitHub - TanStack/query: 🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
                                    • MSW で加速するフロントエンド開発

                                      みなさん、フロントエンド開発時のモックサーバーは何を使っていますか?モックサーバーといっても様々なアプローチがあると思いますが、最近活用している MSW が便利だったので紹介します。MSW(Mock Service Worker)はブラウザリクエストを Service Worker がインターセプトし、任意のレスポンスを返すことが出来るライブラリです。 次の様な Express 風ハンドラーで、モックレスポンスを表現することができます。なんとこのコードがブラウザで動いてしまいます。 import { setupWorker, rest } from "msw"; const worker = setupWorker( rest.get("https://myapi.dev/csr", (req, res, ctx) => { return res( ctx.json({ title: "C

                                        MSW で加速するフロントエンド開発
                                      • [サーバーサイドAPIデバッグ術]ブラウザのリクエストを簡単にリトライしてサーバーの挙動を見る方法 - Qiita

                                        APIの開発してますか?挙動の確認を見る時どうしてますか? curlを手書きしている?パラメータがないリクエストなら手軽で良いですね。 Postmanのようなツールを使っている?素晴らしい! ブラウザで実際に画面を表示している?うーん…それって繰り返したいとき大変なんじゃ…… とはいえ、ブラウザで実際に画面を表示すると、パラメータの組み立てが非常に楽というメリットがあります。 認証情報付きリクエストとか組み立てるの大変ですもんね。 ここで、ブラウザのリクエストをそのまま繰り返したり、ちょっとだけパラメータを組み替えられたら便利だと思いませんか? 今回はそんな方法を紹介します。 cURLでコピーしてリトライする Chromeの開発者ツール(Windows F12、Mac Cmd + Opt + I)を開いてネットワークタブを開いてください。 この状態で目的のページを開いてください。 Pres

                                          [サーバーサイドAPIデバッグ術]ブラウザのリクエストを簡単にリトライしてサーバーの挙動を見る方法 - Qiita
                                        • GitHub - vercel/swr: React Hooks for Data Fetching

                                          SWR is a React Hooks library for data fetching. The name “SWR” is derived from stale-while-revalidate, a cache invalidation strategy popularized by HTTP RFC 5861. SWR first returns the data from cache (stale), then sends the request (revalidate), and finally comes with the up-to-date data again. With just one hook, you can significantly simplify the data fetching logic in your project. And it also

                                            GitHub - vercel/swr: React Hooks for Data Fetching
                                          • fetch() upload streaming は WebSocket の代替になるのか。Fetch を使ってカメラから取得した映像をストリーミングで送信する - 別にしんどくないブログ

                                            Fetch Upload Streaming が Chrome 85 から Origin Trial で使えるようになりました。 何ができるかというと ReadableStream を fetch() の body に渡すことができるようになります。 getUserMedia でカメラから取得した映像をブラウザからストリーミング送信したいときに使えそうと考えたので、今回試してみました。 blog.chromium.org TL;DR fetch() で Stream のデータを送れるようになった WebSocket を使わずに映像などのデータをストリーミング送信できる 以下のコードがこの記事の内容 https://github.com/shisama/sample-streaming-video-with-fetch/blob/master/public/script.js Readabl

                                              fetch() upload streaming は WebSocket の代替になるのか。Fetch を使ってカメラから取得した映像をストリーミングで送信する - 別にしんどくないブログ
                                            • Release v1.0.0 · axios/axios

                                              Added Added stack trace to AxiosError #4624 Add AxiosError to AxiosStatic #4654 Replaced Rollup as our build runner #4596 Added generic TS types for the exposed toFormData helper #4668 Added listen callback function #4096 Added instructions for installing using PNPM #4207 Added generic AxiosAbortSignal TS interface to avoid importing AbortController polyfill #4229 Added axios-url-template in ECOSY

                                                Release v1.0.0 · axios/axios
                                              • GitHub - developit/redaxios: The Axios API, as an 800 byte Fetch wrapper.

                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                  GitHub - developit/redaxios: The Axios API, as an 800 byte Fetch wrapper.
                                                • Fetch Upload Streaming でチャットアプリを作ってみる

                                                  Fetch Upload Streaming とは Fetch Upload Streaming とは、ブラウザの JavaScript の POST リクエストで HTTP のストリーミングを行える機能です。より具体的には、Fetch API の body に ReadableStream や WritableStream のような Streams API を渡せるようになります。 const stream = new ReadableStream({}) fetch(`/send?room=${roomId}`, { method: "POST", body: stream, duplex: "half", }); かねてより Fetch API ではレスポンスを ReadableStream で取得できたのですが、反対にリクエスト時に body に ReadableStream を渡

                                                    Fetch Upload Streaming でチャットアプリを作ってみる
                                                  • 【2023年】SWR & TanStack Query比較

                                                    はじめに 今回はSWRとTanStack Queryの比較によってそれぞれの特徴と違いを整理したいと思います。背景としてネット上にある両者の比較記事は2022年以前のものが多く、当時に比べSWR2.0がリリースされたことなどで比較の観点が変化したように感じました。改めて整理することで技術選定の参考になればと思います。 前提 今回は以下のバージョンを前提にします。(2023/08/26時点でLatest) SWR v2.2.0 TanStack Query v4.34.0 また、私自身はTanStack Queryを業務で1年ほど扱ったことがありSWRは全く経験がない状態です。この記事はどちらが優れているかを示すためのものではなく、あくまで客観的に比較することを目的にしています。 目次 ここでは以下の3つの観点から比較を行い考察をします。 interfaceでの比較 機能面での比較 キャッシ

                                                      【2023年】SWR & TanStack Query比較
                                                    • AbortSignal.any(), AbortSignal.timeout(), そして addEvnetListener() の Signal | blog.jxck.io

                                                      Intro 最近 AbortSignal.any() が提案され、急速に実装が進んでいる。 すでに定義されている AbortSignal.timeout() や addEventListener() への Signal なども含め、非同期処理の中断を実装する際の API はかなり整備されてきた。 これら API のモチベーションと設計を中心にまとめる。 Abort 後のリソース解放 AbortSignal によって、非同期処理のキャンセルが可能になった。例として、 Server 上での Fetch のタイムアウトの例を考えよう。 app.get("/entries", async (req, res) => { const perRequestController = new AbortController() const perRequestSignal = perRequestCont

                                                        AbortSignal.any(), AbortSignal.timeout(), そして addEvnetListener() の Signal | blog.jxck.io
                                                      • GitHub - contiamo/restful-react: A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥

                                                        ⚠️ restful-react has been deprecated: We are focusing on a new open api generator that generates react-query components: https://github.com/fabien0102/openapi-codegen ⚠️ Building React apps that interact with a RESTful API presents a set of questions, challenges and potential gotchas. This project aims to remove such pitfalls, and provide a pleasant developer experience when crafting such applicat

                                                          GitHub - contiamo/restful-react: A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥
                                                        • 伊藤健太郎のほとばしる“レザー愛” 傷ついて完成していく、時代を超えるロマン - ARTIST×FANのWEBマガジン Fanthology!


                                                          !!DJ   juice  NewS    使
                                                            伊藤健太郎のほとばしる“レザー愛” 傷ついて完成していく、時代を超えるロマン - ARTIST×FANのWEBマガジン Fanthology!
                                                          • Service Worker の Background Fetch によるメディアのキャッシュ | blog.jxck.io


                                                            Intro Podcast  PWA 1 Background Fetch   Range Request   API  Service Worker  Range Request/Partial Response  background fetch Podcast  PWA  install  request    Podcast 使 install  requ
                                                              Service Worker の Background Fetch によるメディアのキャッシュ | blog.jxck.io
                                                            • Why Patching Globals Is Harmful

                                                              Honestly, I'd never thought I'd be writing about this, but the matter of patching globals turned out to be one of those topics that a lot of engineers seem to misunderstand. Most of us don't do monkey-patching, and even fewer stay around those implementations long enough to witness their impact. All the more reason to talk about it. Throughout the next few thousand words, I will be referring to mo

                                                                Why Patching Globals Is Harmful
                                                              • lib: add fetch by targos · Pull Request #41749 · nodejs/node

                                                                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                  lib: add fetch by targos · Pull Request #41749 · nodejs/node
                                                                • Encoding data for POST requests

                                                                  Right now, when you go to copilot.github.com you're greeted with this example: async function isPositive(text) { const response = await fetch(`http://text-processing.com/api/sentiment/`, { method: 'POST', body: `text=${text}`, headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, }); const json = await response.json(); return json.label === 'pos'; } This is bad and might result in sec

                                                                    Encoding data for POST requests
                                                                  • Why JavaScript Developers Should Prefer Axios Over Fetch

                                                                    Photo by Brixiv from PexelsIn my previous article, “Deep Insights Into JavaScript’s Fetch API”, I discussed the basics of the Fetch API. But it’s worth acknowledging that fetch() isn’t consistently an ideal solution, and there are sometimes better…

                                                                      Why JavaScript Developers Should Prefer Axios Over Fetch
                                                                    • GitHub - nodejs/undici: An HTTP/1.1 client, written from scratch for Node.js

                                                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                        GitHub - nodejs/undici: An HTTP/1.1 client, written from scratch for Node.js
                                                                      • Axios vs Fetch | Which is Best for Beginners?

                                                                          Axios vs Fetch | Which is Best for Beginners?
                                                                        • 【リソース取得APIの比較】fetchとaxiosの4つの相違点

                                                                          fetchとaxiosはどちらも外部リソースを取得するためのライブラリーで非同期で動くためPromise型を返します。 似ているライブラリーですが、主に4つの違いがあるのでそれぞれを解説してきます。 インストール方法 HTTPメソッド通信 JSONデータの取得方法 エラーハンドリング 1.インストール方法 fetchはブラウザの標準ライブラリーでインストールせずに使うことができます。 一方、axiosはインストールが必要です。以下のコマンドで取り込むことができます。 yarn add axios npm install axios そして、モジュールのインポートも必要です。 import axios from "axios" 2.HTTPメソッド通信 HTTPメソッド通信毎の呼び出し方がfetchとaxiosで異なります。 fetchによるPOST通信 fetchでPOST通信を行う際は第

                                                                            【リソース取得APIの比較】fetchとaxiosの4つの相違点
                                                                          • Node.js — Node v21.0.0 (Current)

                                                                            2023-10-17, Version 21.0.0 (Current), @RafaelGSS and @targos We're excited to announce the release of Node.js 21! Highlights include updates of the V8 JavaScript engine to 11.8, stable fetch and WebStreams, a new experimental flag to change the interpretation of ambiguous code from CommonJS to ES modules (--experimental-default-type), many updates to our test runner, and more! Node.js 21 will repl

                                                                              Node.js — Node v21.0.0 (Current)
                                                                            • GitHub - ardatan/feTS: TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience

                                                                              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                GitHub - ardatan/feTS: TypeScript HTTP Framework focusing on e2e type-safety, easy setup, performance & great developer experience
                                                                              • fetch() In Node.js Core: Why You Should Care

                                                                                Node.js v17.5 introduces support for fetch() – a popular cross-platform HTTP client API that works in browsers and Web/Service Workers – as an experimental core feature. fetch() support has been a long-requested addition by many, who want to write cross-platform HTTP request code and are familiar with the fetch() API shape and call patterns. So much so that the node-fetch module exists solely to b

                                                                                  fetch() In Node.js Core: Why You Should Care
                                                                                • データ取得のための React Hooks ライブラリ「SWR」をNext.jsで試してみた | DevelopersIO

                                                                                  こんにちは!DA(データアナリティクス)事業本部 サービスソリューション部の大高です。 Next.jsと同じチームによって作成されている、データ取得のための React Hooks ライブラリとして「SWR」というライブラリがあります。 今回はこのライブラリの一番基本の部分をNext.jsのプロジェクトで試してみたいと思います。 SWRとは 公式サイトにも以下のように記載されていますが「SWR」という名前はHTTPキャッシュ無効化戦略であるstale-while-revalidateに由来しています。 “SWR” という名前は、 HTTP RFC 5861 で提唱された HTTP キャッシュ無効化戦略である stale-while-revalidate に由来しています。 SWR は、まずキャッシュからデータを返し(stale)、次にフェッチリクエストを送り(revalidate)、最後に

                                                                                    データ取得のための React Hooks ライブラリ「SWR」をNext.jsで試してみた | DevelopersIO

                                                                                  新着記事