docs: add missing code fences to JSDoc @example blocks (#1485)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7e80df6add
commit
64fb21d7a7
1 changed files with 13 additions and 3 deletions
|
|
@ -44,7 +44,9 @@ export function localhostAllowedHostnames(): string[] {
|
|||
/**
|
||||
* Web-standard Request helper for DNS rebinding protection.
|
||||
* @example
|
||||
* ```typescript
|
||||
* const result = validateHostHeader(req.headers.get('host'), ['localhost'])
|
||||
* ```
|
||||
*/
|
||||
export function hostHeaderValidationResponse(req: Request, allowedHostnames: string[]): Response | undefined {
|
||||
const result = validateHostHeader(req.headers.get('host'), allowedHostnames);
|
||||
|
|
|
|||
Loading…
Reference in a new issue