Home > puppeteer > HTTPRequest > respond
Signature:
respond(response: {
status: number;
headers: Record<string, string>;
contentType: string;
body: string | Buffer;
}): Promise<void>;
Parameter | Type | Description |
---|---|---|
response | { status: number; headers: Record<string, string>; contentType: string; body: string | Buffer; } |
Returns:
Promise<void>