<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [HTTPRequest](./puppeteer.httprequest.md) &gt; [resourceType](./puppeteer.httprequest.resourcetype.md)

## HTTPRequest.resourceType() method

Contains the request's resource type as it was perceived by the rendering engine.

<b>Signature:</b>

```typescript
resourceType(): string;
```
<b>Returns:</b>

string

one of the following: `document`<!-- -->, `stylesheet`<!-- -->, `image`<!-- -->, `media`<!-- -->, `font`<!-- -->, `script`<!-- -->, `texttrack`<!-- -->, `xhr`<!-- -->, `fetch`<!-- -->, `eventsource`<!-- -->, `websocket`<!-- -->, `manifest`<!-- -->, `other`<!-- -->.

## Remarks


