Back to Alamofire

DuplicateHeaderBehavior

docs/Structs/DeflateRequestCompressor/DuplicateHeaderBehavior.html

5.12.0636 B
Original Source

DuplicateHeaderBehavior

public enum DuplicateHeaderBehavior : Sendable

Type that determines the action taken when the URLRequest already has a Content-Encoding header.

`

                error
                `

Throws a DuplicateHeaderError. The default.

Declaration

Swift

case error

`

                replace
                `

Replaces the existing header value with deflate.

Declaration

Swift

case replace

`

                skip
                `

Silently skips compression when the header exists.

Declaration

Swift

case skip