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:
Jonathan Hefner 2026-02-10 17:45:22 -06:00 • committed by GitHub
commit 64fb21d7a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);