mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
28 lines
733 B
Markdown
28 lines
733 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [HTTPRequest](./puppeteer.httprequest.md) > [respond](./puppeteer.httprequest.respond.md)
|
||
|
|
||
|
## HTTPRequest.respond() method
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
respond(response: {
|
||
|
status: number;
|
||
|
headers: Record<string, string>;
|
||
|
contentType: string;
|
||
|
body: string | Buffer;
|
||
|
}): Promise<void>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| response | { status: number; headers: Record<string, string>; contentType: string; body: string \| Buffer; } | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<void>
|
||
|
|