---
title: "fastOpenAllowed(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwparametersprovider/fastopenallowed(_:)"
---

# fastOpenAllowed(_:)

Allow fast open to be used on a connection.

## Declaration

```swift
func fastOpenAllowed(_ allowed: Bool) -> Self
```

## Parameters

- `allowed`: True if fast open should be used, false otherwise.

## Discussion

Discussion Use fast open for an outbound connection, which may be done at any protocol level. Use of fast open requires that the caller send idempotent data on the connection before the connection may move into the ready state. warning: This may have security implications for application data. In particular, TLS early data is replayable by a network attacker. You must account for this when sending data before the handshake is confirmed. See RFC 8446 for more information. You MUST NOT enable fast open without a specific application profile that defines its use. As a side effect, this may implicitly enable fast open or early data for protocols in the stack, even if they did not have fast open explicitly enabled on them (such as the option to enable TCP Fast Open).
