---
title: Backend
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/backend/class.Backend/
---

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

Include `fastly/backend.h` to use this class.

## Methods

### builder

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

```cpp
BackendBuilder fastly::backend::Backend::builder(std::string_view name, std::string_view target)
```

**Parameters**

- `name`: `std::string_view`
- `target`: `std::string_view`

**Returns**

`BackendBuilder`

### clone

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

```cpp
Backend fastly::backend::Backend::clone()
```

**Returns**

`Backend`

### exists

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

```cpp
bool fastly::backend::Backend::exists()
```

**Returns**

`bool`

### from_name

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

```cpp
static fastly::expected<Backend> fastly::backend::Backend::from_name(std::string_view name)
```

**Parameters**

- `name`: `std::string_view`

**Returns**

`fastly::expected<Backend>`

### get_between_byte_timeout

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

```cpp
std::chrono::milliseconds fastly::backend::Backend::get_between_byte_timeout()
```

**Returns**

`std::chrono::milliseconds`

### get_connect_timeout

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

```cpp
std::chrono::milliseconds fastly::backend::Backend::get_connect_timeout()
```

**Returns**

`std::chrono::milliseconds`

### get_first_byte_timeout

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

```cpp
std::chrono::milliseconds fastly::backend::Backend::get_first_byte_timeout()
```

**Returns**

`std::chrono::milliseconds`

### get_host

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

```cpp
std::string fastly::backend::Backend::get_host()
```

**Returns**

`std::string`

### get_http_keepalive_time

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

```cpp
std::chrono::milliseconds fastly::backend::Backend::get_http_keepalive_time()
```

**Returns**

`std::chrono::milliseconds`

### get_port

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

```cpp
uint16_t fastly::backend::Backend::get_port()
```

**Returns**

`uint16_t`

### get_tcp_keepalive_enable

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

```cpp
bool fastly::backend::Backend::get_tcp_keepalive_enable()
```

**Returns**

`bool`

### get_tcp_keepalive_interval

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

```cpp
std::chrono::milliseconds fastly::backend::Backend::get_tcp_keepalive_interval()
```

**Returns**

`std::chrono::milliseconds`

### get_tcp_keepalive_probes

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

```cpp
uint32_t fastly::backend::Backend::get_tcp_keepalive_probes()
```

**Returns**

`uint32_t`

### get_tcp_keepalive_time

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

```cpp
std::chrono::milliseconds fastly::backend::Backend::get_tcp_keepalive_time()
```

**Returns**

`std::chrono::milliseconds`

### into_string

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

```cpp
std::string fastly::backend::Backend::into_string()
```

**Returns**

`std::string`

### is_dynamic

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

```cpp
bool fastly::backend::Backend::is_dynamic()
```

**Returns**

`bool`

### is_ssl

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

```cpp
bool fastly::backend::Backend::is_ssl()
```

**Returns**

`bool`

### name

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

```cpp
std::string fastly::backend::Backend::name()
```

**Returns**

`std::string`

### operator!=

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

```cpp
bool fastly::backend::Backend::operator!=(Backend b)
```

**Parameters**

- `b`: `Backend`

**Returns**

`bool`

### operator==

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

```cpp
bool fastly::backend::Backend::operator==(Backend b)
```

**Parameters**

- `b`: `Backend`

**Returns**

`bool`
