-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not setup content encoding for js and native
- Loading branch information
1 parent
f612f3b
commit 32c71a7
Showing
6 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
elasticmagic-transport-ktor/src/jsMain/kotlin/dev/evo/elasticmagic/transport/js.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dev.evo.elasticmagic.transport | ||
|
||
import io.ktor.client.plugins.compression.ContentEncoding | ||
|
||
internal actual val setupContentEncoding: ContentEncoding.Config.() -> Unit = {} |
9 changes: 9 additions & 0 deletions
9
elasticmagic-transport-ktor/src/jvmMain/kotlin/dev/evo/elasticmagic/transport/jvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package dev.evo.elasticmagic.transport | ||
|
||
import io.ktor.client.plugins.compression.ContentEncoding | ||
|
||
internal actual val setupContentEncoding: ContentEncoding.Config.() -> Unit = { | ||
gzip() | ||
deflate() | ||
identity() | ||
} |
5 changes: 5 additions & 0 deletions
5
elasticmagic-transport-ktor/src/nativeMain/kotlin/dev/evo/elasticmagic/transport/native.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package dev.evo.elasticmagic.transport | ||
|
||
import io.ktor.client.plugins.compression.ContentEncoding | ||
|
||
internal actual val setupContentEncoding: ContentEncoding.Config.() -> Unit = {} |