URLPattern
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2738
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new URLPattern(
input?
,baseURL?
,patternOptions?
):URLPattern
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2739
Parameters
Section titled “Parameters”input?
Section titled “input?”string
| URLPatternInit
baseURL?
Section titled “baseURL?”string
| URLPatternOptions
patternOptions?
Section titled “patternOptions?”Returns
Section titled “Returns”URLPattern
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get hash():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2751
Returns
Section titled “Returns”string
hostname
Section titled “hostname”Get Signature
Section titled “Get Signature”get hostname():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2747
Returns
Section titled “Returns”string
password
Section titled “password”Get Signature
Section titled “Get Signature”get password():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2746
Returns
Section titled “Returns”string
pathname
Section titled “pathname”Get Signature
Section titled “Get Signature”get pathname():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2749
Returns
Section titled “Returns”string
Get Signature
Section titled “Get Signature”get port():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2748
Returns
Section titled “Returns”string
protocol
Section titled “protocol”Get Signature
Section titled “Get Signature”get protocol():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2744
Returns
Section titled “Returns”string
search
Section titled “search”Get Signature
Section titled “Get Signature”get search():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2750
Returns
Section titled “Returns”string
username
Section titled “username”Get Signature
Section titled “Get Signature”get username():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2745
Returns
Section titled “Returns”string
Methods
Section titled “Methods”exec()
Section titled “exec()”exec(
input?
,baseURL?
):null
|URLPatternResult
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2753
Parameters
Section titled “Parameters”input?
Section titled “input?”string
| URLPatternInit
baseURL?
Section titled “baseURL?”string
Returns
Section titled “Returns”null
| URLPatternResult
test()
Section titled “test()”test(
input?
,baseURL?
):boolean
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:2752
Parameters
Section titled “Parameters”input?
Section titled “input?”string
| URLPatternInit
baseURL?
Section titled “baseURL?”string
Returns
Section titled “Returns”boolean