---
title: DecompressResponseOptions
summary: DecompressResponseOptions control the auto decompress response behaviour.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/struct.DecompressResponseOptions/
---

**Kind:** Struct  
**Module:** [fsthttp](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/request.go#L1255

```go
type DecompressResponseOptions struct {
	Gzip bool
}
```

DecompressResponseOptions control the auto decompress response behaviour.

## Fields

### Gzip

**Type:** `bool`

Gzip controls whether a gzip-encoded response to the request will be
automatically decompressed.

If the response to the request is gzip-encoded, it will be presented in
decompressed form, and the Content-Encoding and Content-Length headers
will be removed.
