fetch_client
Fetch API를 기반으로 한 http 패키지용 클라이언트로, 웹에서 스트리밍 및 취소 가능한 요청을 가능하게 하고, 더 많은 기능을 제공합니다.
HTTP 패키지용 기반 가져오기 클라이언트입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This package provides package:http client based on Fetch API with WASM support.
It's a drop-in solution for extensions with Manifest V3.
Stream.Stream as request body (supported only in Chromium 105+
based browsers).200 responses (fetch will only fail on network errors).location
header.This module maps keepalive to BaseRequest.persistentConnection
which is true by default.
Fetch spec says that maximum request size with keepalive flag is 64KiB:
4.5. HTTP-network-or-cache fetch
8.10.5: If the sum of contentLength and inflightKeepaliveBytes is greater than 64 kibibytes, then return a network error.
Therefore if your request is larger than 64KiB (this includes some other data,
such as headers) BaseRequest.persistentConnection
will be ignored and treated as false.
Request streaming is supported only in Chromium 105+ based browsers and requires the server to use HTTP/2 or HTTP/3.
See MDN compatibility chart and Chrome Developers' blog for more info.
의존성 목록 7 개
^2.2.0^1.5.0>=2.4.10>=4.0.10{"git":{"url":"https://github.com/dart-lang/http","ref":"master","path":"pkgs/http_client_conformance_tests"}}^1.25.5^2.3.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗