Skip to content

request.ts#

View Markdown

Source

3 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

3 symbols 1 functions 1 variables 1 modules 1 parameters 1 returns

Reference#

fninstallOgpLookup(lookup: OgpLookup | undefined): voidTest hook. Production builds use the system resolver.

Test hook. Production builds use the system resolver.

Signature

export function installOgpLookup(lookup: OgpLookup | undefined): void

View source

Parameters

  • lookup OgpLookup | undefined

Returns

void
variableconst OGP_MAX_BYTES = 1_048_576Bytes read from a page. Open Graph tags live in <head>, so the rest is dropped.

Bytes read from a page. Open Graph tags live in <head>, so the rest is dropped.

Signature

export const OGP_MAX_BYTES = 1_048_576

View source

modulerequestOpen Graph page request: public hosts only, redirects checked hop by hop, one deadline for the whole exchange, and a bo…

Open Graph page request: public hosts only, redirects checked hop by hop, one deadline for the whole exchange, and a bounded body.

View source