matchProtocol() — astro Function Reference
Architecture documentation for the matchProtocol() function in remote.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 04b0d476_b2fb_33ff_c363_f4b0c875716a["matchProtocol()"] be14f71c_abe1_1789_62c6_249b28c23bcc["remote.ts"] 04b0d476_b2fb_33ff_c363_f4b0c875716a -->|defined in| be14f71c_abe1_1789_62c6_249b28c23bcc 2c106453_076d_2939_b71b_64bda08efedf["matchPattern()"] 2c106453_076d_2939_b71b_64bda08efedf -->|calls| 04b0d476_b2fb_33ff_c363_f4b0c875716a style 04b0d476_b2fb_33ff_c363_f4b0c875716a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-helpers/src/remote.ts lines 42–44
export function matchProtocol(url: URL, protocol?: string): boolean {
return !protocol || protocol === url.protocol.slice(0, -1);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does matchProtocol() do?
matchProtocol() is a function in the astro codebase, defined in packages/internal-helpers/src/remote.ts.
Where is matchProtocol() defined?
matchProtocol() is defined in packages/internal-helpers/src/remote.ts at line 42.
What calls matchProtocol()?
matchProtocol() is called by 1 function(s): matchPattern.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free