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

Agent.getName method | Node.js http module | Bun

Agent.getName method | Node.js http module | BunBuildDocsReferenceGuidesBlogDiscord/node:http/Agent/getNameMgetName

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:http/Agent/getNameMgetName

method

http.Agent.getNamegetName(options?: ClientRequestArgs): string;Get a unique name for a set of request options, to determine whether a connection can be reused. For an HTTP agent, this returnshost:port:localAddress or host:port:localAddress:family. For an HTTPS agent, the name includes the CA, cert, ciphers, and other HTTPS/TLS-specific options that determine socket reusability.

@param optionsA set of options providing information for name generation

Referenced typesinterface ClientRequestArgs_defaultAgent?: Agentagent?: boolean | Agentauth?: null | stringcreateConnection?: (options: ClientRequestArgs, oncreate: (err: null | Error, socket: Duplex) => void) => undefined | null | DuplexdefaultPort?: string | numberfamily?: numberheaders?: readonly string[] | OutgoingHttpHeadershints?: numberOne or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.

host?: null | stringhostname?: null | stringinsecureHTTPParser?: booleanjoinDuplicateHeaders?: booleanlocalAddress?: stringlocalPort?: numberlookup?: LookupFunctionmaxHeaderSize?: numbermethod?: stringpath?: null | stringport?: null | string | numberprotocol?: null | stringsetDefaultHeaders?: booleansetHost?: booleansignal?: AbortSignalsocketPath?: stringtimeout?: numberuniqueHeaders?: string | string[][]

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco

We're hiring →

智能索引记录