Skip to content

Search the guides, deployment pages, and API reference.

CrawlResult

import type { CrawlResult } from "@pitlane/crawler";

One fetched path and the response the router produced for it.

Properties

filepath

filepath: string;

Where the response belongs on disk. HTML lands at <pathname>/index.html so a static host serves it for the original path; everything else keeps its own path.


pathname

pathname: string;

The path that was requested, exactly as it was queued.


response

response: Response;

The router's response. Unconsumed: the body is still readable.