PhantomJsCloud Automation API
    Preparing search index...

    Class HTTPResponse

    A response of the page, as given to a Page.waitForResponse predicate and returned by Frame.goto and Frame.waitForNavigation. Every member is a synchronous method. Body reads (text, json, buffer) are not available.

    const response = await page.frames()[0].goto("https://example.com");
    page.meta.log(response.status(), response.headers()["content-type"]);
    Index
    • Whether the response came from the browser cache.

      Returns boolean

    • Whether a service worker served the response.

      Returns boolean

    • The response headers (lower-case names).

      Returns Record<string, string>

    • Whether the status is 200-299.

      Returns boolean

    • The remote server's { ip, port }.

      Returns { ip?: string; port?: number }

    • The TLS details of the connection, or null.

      Returns any

    • The HTTP status code.

      Returns number

    • The HTTP status text.

      Returns string

    • The plain summary object behind these methods.

      Returns Response

    • The response url.

      Returns string