<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [puppeteer](./puppeteer.md) > [HTTPRequest](./puppeteer.httprequest.md) > [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