URLPattern
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2732
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new URLPattern(
input?,baseURL?,patternOptions?):URLPattern
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2733
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2745
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2741
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2740
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2743
Returns
Section titled “Returns”string
Get Signature
Section titled “Get Signature”get port():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2742
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2738
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2744
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2739
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2747
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.20250923.0/node_modules/@cloudflare/workers-types/index.ts:2746
Parameters
Section titled “Parameters”input?
Section titled “input?”string | URLPatternInit
baseURL?
Section titled “baseURL?”string
Returns
Section titled “Returns”boolean