Server SDKs
Build AI agents, control calls, send messages, and more
Build the Strict-Transport-Security header value for HSTS.
Strict-Transport-Security
None.
string | null — The HSTS header string (e.g., "max-age=31536000; includeSubDomains"), or null if HSTS is disabled or SSL is off.
string | null
"max-age=31536000; includeSubDomains"
null
1import { SslConfig } from '@signalwire/sdk';23const ssl = new SslConfig({ enabled: true, hsts: true });4const header = ssl.getHstsHeader();5console.log(header); // "max-age=31536000; includeSubDomains"