method Http2ServerResponse.prototype.writeEarlyHints
Usage in Deno
```typescript import { Http2ServerResponse } from "node:node__http2.d.ts"; ```
Http2ServerResponse.prototype.writeEarlyHints(hints: Record<string, string | string[]>): void
Sends a status `103 Early Hints` to the client with a Link header,
indicating that the user agent can preload/preconnect the linked resources.
The `hints` is an object containing the values of headers to be sent with
early hints message.
**Example**
```js
const earlyHintsLink = '; rel=preload; as=style';
response.writeEarlyHints({
'link': earlyHintsLink,
});
const earlyHintsLinks = [
'; rel=preload; as=style',
'; rel=preload; as=script',
];
response.writeEarlyHints({
'link': earlyHintsLinks,
});
```
void