Basics
Guides
API Reference
Basics
Guides
API Reference
[8:14] (extern: com.lehman.aussom.AResponse) extends: object
The response class wraps a network response received by a page. Instances are obtained via page.navigate(), page.waitForResponse(), or from a request object via request.response().
url ()
Returns the URL of the response.
A string URL.status ()
Returns the HTTP status code of the response (e.g. 200, 404).
An int HTTP status code.statusText ()
Returns the HTTP status text of the response (e.g. 'OK', 'Not Found').
A string status text.headers ()
Returns the response headers as a map of header name to value strings.
A map of string header names to string values.ok ()
Returns whether the response was successful (status in range 200-299).
A bool - true if the response status is in the 2xx range.text ()
Returns the response body as a string decoded as UTF-8.
A string response body.request ()
Returns the request that triggered this response.
A request object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.