Skip to content

Connectum API Reference / @connectum/core / EffectiveTransport

Variable: EffectiveTransport

const EffectiveTransport: object

Defined in: packages/core/src/TransportValidation.ts:54

Effective transport resolved from tls + allowHTTP1.

  • plaintext-h1 — no TLS, allowHTTP1: true (default): HTTP/1.1 only.
  • h2c — no TLS, allowHTTP1: false: plaintext HTTP/2.
  • tls-h1-negotiable — TLS, allowHTTP1: true: ALPN offers both; a client may negotiate HTTP/1.1 (residual bidi risk).
  • tls-h2-only — TLS, allowHTTP1: false: ALPN refuses HTTP/1.1.

Type Declaration

H2C

readonly H2C: "h2c" = "h2c"

PLAINTEXT_H1

readonly PLAINTEXT_H1: "plaintext-h1" = "plaintext-h1"

TLS_H1_NEGOTIABLE

readonly TLS_H1_NEGOTIABLE: "tls-h1-negotiable" = "tls-h1-negotiable"

TLS_H2_ONLY

readonly TLS_H2_ONLY: "tls-h2-only" = "tls-h2-only"