Base URL to be used to resolve all relative request URLs with.
Current HTTP response content.
Cookie jar to use.
User-agent hooks.
Transport backend to perform HTTP requests with.
Transport backend to perform HTTPS requests with.
Maximum number of redirects to follow, default to 0
.
Name of user-agent to send with User-Agent
header.
Server to use for mock requests.
Transport backend to use for WebSocket connections.
Current HTTP response.
Optional
options: UserAgentRequestOptionsOptional
options: UserAgentRequestOptionsAdd a hook to extend the user-agent.
Check response content for exact match.
Opposite of bodyIs
.
Check response content for similar match.
Opposite of bodyLike
.
Perform DELETE
request.
Perform a DELETE
request and check for transport errors.
Optional
options: UserAgentRequestOptionsChecks for existence of the CSS selectors first matching HTML/XML element.
Opposite of elementExists
.
Perform GET
request.
Perform a GET
request and check for transport errors.
Optional
options: UserAgentRequestOptionsPerform HEAD
request.
Perform a HEAD
request and check for transport errors.
Optional
options: UserAgentRequestOptionsCheck if response header exists.
Opposite of headerExists
.
Check response header for exact match.
Opposite of headerIs
.
Check response header for similar match.
Check if JSON response contains a value that can be identified using the given JSON Pointer.
Check the value extracted from JSON response using the given JSON Pointerr, which defaults to the root value if it is omitted.
Perform OPTIONS
request.
Perform a OPTIONS
request and check for transport errors.
Optional
options: UserAgentRequestOptionsPerform PATCH
request.
Perform a PATCH
request and check for transport errors.
Optional
options: UserAgentRequestOptionsPerform POST
request.
Perform a POST
request and check for transport errors.
Optional
options: UserAgentRequestOptionsPerform PUT
request.
Perform a PUT
request and check for transport errors.
Optional
options: UserAgentRequestOptionsPerform HTTP request.
Start mock server.
Check response status for exact match.
Checks text content of the CSS selectors first matching HTML/XML element for similar match.
Checks text content of the CSS selectors first matching HTML/XML element for no match.
Check response Content-Type
header for exact match.
Check response Content-Type
header for similar match.
Open WebSocket connection.
Open a WebSocket connection with transparent handshake.
Optional
options: UserAgentWebSocketOptionsCheck if YAML response contains a value that can be identified using the given JSON Pointer.
Check the value extracted from YAML response using the given JSON Pointerr, which defaults to the root value if it is omitted.
Static
newCreate a new mock user-agent.
Optional
options: UserAgentOptionsOptional
serverOptions: ServerOptionsStatic
newCreate a new test user-agent.
Optional
options: TestUserAgentOptionsOptional
serverOptions: ServerOptionsGenerated using TypeDoc
Test user-agent class.