Request | mockttp

Interface Request

Hierarchy (view full)

Properties

destination

The best guess at the target host + port of the request. This uses tunnelling metadata wherever possible, or the headers if not.

headers

httpVersion

httpVersion: string

id

id: string

OptionalmatchedRuleId

matchedRuleId?: string

method

method: string

path

path: string

protocol

protocol: string

rawHeaders

OptionalremoteIpAddress

remoteIpAddress?: string

OptionalremotePort

remotePort?: number

tags

tags: string[]

timingEvents

url

url: string