IF Commons GitHub

physical/probe

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-scanners-tls FR-003

The built-in check's one contact with a target: one TLS handshake and one HEAD request, with the answer's status, headers and cookies (names and flags; the values are dropped here, before anything leaves this function) and the handshake's protocol, cipher and certificate. The request carries no body, no credential and no cookie; the connection is closed after the answer's headers.

import { probeEndpoint } from "./probe.ts";
// await probeEndpoint("https://app.example.test/", 10_000) // { answer, handshake }

Source: commons/scanners/src/physical/probe.ts

1 of 4 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

physical.Probedtypeno test imports it
type Probed = { readonly answer: Answer; readonly handshake: Handshake | undefined };

What the probe saw.

physical.probeEndpointfunctionno test imports it
function probeEndpoint(url: string, timeoutMs: number): Promise<Probed>

One HEAD request to url, over TLS where the address is https.

Probedtypeno test imports it
type Probed = { readonly answer: Answer; readonly handshake: Handshake | undefined };

What the probe saw.

probeEndpointfunction
function probeEndpoint(url: string, timeoutMs: number): Promise<Probed>

One HEAD request to url, over TLS where the address is https.

Imported by 3 tests of the run (3 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.