---
name: "TSHttpTxnCntl"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSHttpTxnCntl"
---

# TSHttpTxnCntl(3ts)

TSHttpTxnCntl API function

## NAME

TSHttpTxnCntl - TSHttpTxnCntl API function

## SYNOPSIS

```
#include <ts/ts.h>
```

- **bool TSHttpTxnCntlGet(*TSHttpTxn* txnp, *TSHttpCntlType* ctrl)**

  - ***TSReturnCode* TSHttpTxnCntlSet(*TSHttpTxn* txnp, *TSHttpCntlType* cntl, bool data)**

  ## DESCRIPTION

Set or Get the status of various control mechanisms within the HTTP transaction. The control type must be one of the values are identified by the enumeration *TSHttpCntlType*. The values are boolean values, **true** and **false**. A **true** values turns on the transaction feature, and the **false** value turns it off.

## COPYRIGHT

2026, dev@trafficserver.apache.org
