Function writeFor
-
writeFor(
writes: readonly Readonly<
ResourceWriteDeclaration & { pattern: string },
>[],
method: string,
url: URL,
pageOrigin: string,
): Readonly<ResourceWriteDeclaration & { pattern: string }> | undefinedParameters
- writes: readonly Readonly<ResourceWriteDeclaration & { pattern: string }>[]
- method: string
- url: URL
- pageOrigin: string
Returns Readonly<ResourceWriteDeclaration & { pattern: string }> | undefined
The resource write a request matches: its method, a pattern that matches its path, and its origin. A write with no origin matches only the page's own origin; one with an origin matches that origin.