From 31a8ced6c13c717896a2bc640b390627df94bc38 Mon Sep 17 00:00:00 2001 From: Naman Khurmi Date: Mon, 11 Sep 2023 21:04:27 +0530 Subject: [PATCH] TP-41331 gzip integration and testing (#7853) Co-authored-by: Aparna Vadlamani --- .../kotlin/com/navi/ap/network/retrofit/RetrofitService.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/navi-ap/src/main/kotlin/com/navi/ap/network/retrofit/RetrofitService.kt b/navi-ap/src/main/kotlin/com/navi/ap/network/retrofit/RetrofitService.kt index 7d2ddf17b9..25077b3fff 100644 --- a/navi-ap/src/main/kotlin/com/navi/ap/network/retrofit/RetrofitService.kt +++ b/navi-ap/src/main/kotlin/com/navi/ap/network/retrofit/RetrofitService.kt @@ -33,6 +33,8 @@ interface RetrofitService { @Header("X-APPLICATION-TYPE") applicationType: String, @Header("X-VERTICAL-TYPE") verticalType: String, @Header("X-Target") target: String = ModuleName.AP.name, + @Header("Accept-Encoding") acceptEncoding: String = "gzip", + ): Response> @POST("/arc-warden/api/v2/application/{applicationId}/screen") @@ -51,6 +53,7 @@ interface RetrofitService { @Header("X-APPLICATION-TYPE") applicationType: String, @Header("X-VERTICAL-TYPE") verticalType: String, @Header("X-Target") target: String = ModuleName.AP.name, + @Header("Accept-Encoding") acceptEncoding: String = "gzip", ): Response> @POST("/arc-warden/api/v2/application") @@ -59,6 +62,7 @@ interface RetrofitService { @Header("X-APPLICATION-TYPE") applicationType: String, @Header("X-VERTICAL-TYPE") verticalType: String, @Header("X-Target") target: String = ModuleName.AP.name, + @Header("Accept-Encoding") acceptEncoding: String = "gzip", ): Response> @GET("/arc-warden/api/v2/application/{applicationId}/screen") @@ -70,6 +74,7 @@ interface RetrofitService { @Header("X-APPLICATION-TYPE") applicationType: String, @Header("X-VERTICAL-TYPE") verticalType: String, @Header("X-Target") target: String = ModuleName.AP.name, + @Header("Accept-Encoding") acceptEncoding: String = "gzip", ): Response> @GET("/application-platform/application/{applicationId}/end-routing")