> This page is for Server SDKs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# getHstsHeader

> Build the Strict-Transport-Security header value.

Build the `Strict-Transport-Security` header value for HSTS.

## **Parameters**

None.

## **Returns**

`string | null` -- The HSTS header string (e.g., `"max-age=31536000; includeSubDomains"`),
or `null` if HSTS is disabled or SSL is off.

## **Example**

```typescript {4}
import { SslConfig } from '@signalwire/sdk';

const ssl = new SslConfig({ enabled: true, hsts: true });
const header = ssl.getHstsHeader();
console.log(header); // "max-age=31536000; includeSubDomains"
```