温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/globals/fetch
点击访问原文链接

namespace fetch | globals module | Bun

namespace fetch | globals module | BunBuildDocsReferenceGuidesBlogDiscord/Globals/fetchFfetchFpreconnect

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Globals/fetchFfetchFpreconnect

namespace

fetchfunction fetch(input: string | URL | Request,init?: BunFetchRequestInit): PromiseResponse>;

Send a HTTP(s) request

@param input

URL string or Request object

@param init

A structured value that contains settings for the fetch() request.

@returns

A promise that resolves to Response object.

namespace fetch

Bun's extensions of the fetch API

function preconnect(url: string | URL,options?: { dns: boolean; http: boolean; https: boolean; tcp: boolean }): void;

Preconnect to a URL. This can be used to improve performance by pre-resolving the DNS and establishing a TCP connection before the request is made.

This is a custom property that is not part of the Fetch API specification.

@param url

The URL to preconnect to

@param options

Options for the preconnect

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

namespace fetch | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    Bun