---
title: ProcessFragmentResponseFn
summary: A callback type used to process responses from ESI fragment requests.
url: https://www.fastly.com/documentation/reference/compute/sdks/cpp/fastly/esi/class.ProcessFragmentResponseFn/
---

**Kind:** Class  
**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#L60

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

Extends `fastly::detail::rust_bridge_tags::esi::ProcessFragmentResponseFnTag`.

A callback type used to process responses from ESI fragment requests.

## Constructor

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

```cpp
template<std::convertible_to<function_type> F> fastly::esi::ProcessFragmentResponseFn::ProcessFragmentResponseFn(F &&fn)
```

**Parameters**

- `fn`: `F &&`
