MCPcopy
hub / github.com/codeaashu/claude-code / getWebFetchUserAgent

Function getWebFetchUserAgent

src/utils/http.ts:56–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54// operators match in robots.txt); the claude-code suffix lets them distinguish
55// local CLI traffic from claude.ai server-side fetches.
56export function getWebFetchUserAgent(): string {
57 return `Claude-User (${getClaudeCodeUserAgent()}; +https://support.anthropic.com/)`
58}
59
60export type AuthHeaders = {
61 headers: Record<string, string>

Callers 1

Calls 1

getClaudeCodeUserAgentFunction · 0.85

Tested by

no test coverage detected