URLPattern
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3345
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new URLPattern(
input?,baseURL?,patternOptions?):URLPattern
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3346
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3358
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3354
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3353
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3356
Returns
Section titled “Returns”string
Get Signature
Section titled “Get Signature”get port():
string
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3355
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3351
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3357
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3352
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3360
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.20251118.0/node_modules/@cloudflare/workers-types/index.ts:3359
Parameters
Section titled “Parameters”input?
Section titled “input?”string | URLPatternInit
baseURL?
Section titled “baseURL?”string
Returns
Section titled “Returns”boolean