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://examples.phantomjscloud.com/examples/corpus/example.com.html");
    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 }. Through a proxy it is the proxy's address. Empty ({}) when the render uses one of our proxies (anon-… or geo-…, proxy.builtin, proxy.geolocation); a render through your own proxy (custom-…) shows your proxy's address.

      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