Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.network/HttpRequest/Builder/gzip

gzip

fun gzip(shouldGzip: Boolean): HttpRequest.Builder

Sets whether or not the outbound request will be GZipped prior to sending.

Note. the Content-Encoding header will be automatically added during the call to build, so will overwrite any similar headers set via the header method.

Parameters

shouldGzip

true if the content should be gzipped; else false

Generated by Dokka
(c) Tealium 2026