---
title: Configuration
summary: Used to configure optional behaviour within the ESI processor.
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/esi/struct.Configuration/
---

**Kind:** Struct  
**Module:** [esi](https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/esi/)  
**Package:** compute-sdk-cpp 0.7.0  
**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/esi.h#L19

Include `fastly/esi.h` to use this struct.

Used to configure optional behaviour within the ESI processor.

## Constructor

**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/esi.h#L24

```cpp
fastly::esi::Configuration::Configuration(std::string namespc = "esi", bool is_escaped_content = true)
```

Create a new configuration object.

**Parameters**

- `namespc`: `std::string` (optional) = `"esi"` — The namespace to use for ESI tags.
- `is_escaped_content`: `bool` (optional) = `true` — Whether to escape content by default.

## Methods

### get_namespace

**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/esi.h#L28

```cpp
std::string_view fastly::esi::Configuration::get_namespace() const
```

**Returns**

`std::string_view`

### is_escaped_content

**Source:** https://github.com/fastly/compute-sdk-cpp/blob/ff911e47be2f319e83a9cde960d2c3c5db534280/include/fastly/esi.h#L29

```cpp
bool fastly::esi::Configuration::is_escaped_content() const
```

**Returns**

`bool`
