Options
All
  • Public
  • Public/Protected
  • All
Menu

Metadata of the incoming request.

Hierarchy

  • RequestMeta

Index

Accessors

headers

  • Gets a readonly list of headers that are present on the incoming request.

    Returns Headers

method

  • The method of the incoming request.

    Returns Method

origin

  • Location data about this request

    Returns Location

pathCaptures

  • get pathCaptures(): Readonly<Record<string, string>>
  • Map of captured path values from the request.

    Consider an edge handler mounted on /posts/:postId, that is run during a request to /posts/1337. Then, pathCaptures will contain an entry "postId" (without the initial colon) with the value "1337".

    Wildcard parameter values from path rules like /posts/* are exposed under the key "splat".

    The returned object is frozen and cannot be modified.

    Returns Readonly<Record<string, string>>

url

  • The URL of the incoming request.

    Returns URL

zone

  • get zone(): undefined | string
  • Zone where the Edge Handler is executed

    Returns undefined | string

Generated using TypeDoc