Send a HTTP(s) request
namespace fetch | globals module | Bun BuildDocsReferenceGuidesBlogDiscord/Globals/fetchFfetchFpreconnect BuildDocsReferenceGuidesBlogDiscord /Globals/fetchFfetchFpreconnect @param input @param init @returns namespace fetch function preconnect(url: string | URL,options?: { dns: boolean; http: boolean; https: boolean; tcp: boolean }): void; @param url @param options
Search the reference...
/
namespace
fetchfunction fetch(input: string | URL | Request,init?: BunFetchRequestInit): PromiseResponse>;URL string or Request object
A structured value that contains settings for the fetch() request.
A promise that resolves to Response object.
Bun's extensions of the fetch API
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.
The URL to preconnect to
Options for the preconnect
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →namespace fetch | globals module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- Bun