feat(v1/webhook): complex webhook object w/ headers (#899)

* feat(v1/webhook): complex webhook object w/ headers

* feat(js-sdk/crawl): add complex webhook support
This commit is contained in:
Gergő Móricz
2024-11-13 19:36:44 +01:00
committed by GitHub
parent ea1302960f
commit 32be2cf786
4 changed files with 28 additions and 9 deletions
+4 -1
View File
@@ -153,7 +153,10 @@ export interface CrawlParams {
allowExternalLinks?: boolean;
ignoreSitemap?: boolean;
scrapeOptions?: CrawlScrapeOptions;
webhook?: string;
webhook?: string | {
url: string;
headers?: Record<string, string>;
};
deduplicateSimilarURLs?: boolean;
ignoreQueryParameters?: boolean;
}