@@ -33,13 +33,13 @@ internal data class HttpHeader(val key: String, val value: String)
3333internal data class HttpResponse (val responseCode : Int , val body : String , val headers : List <HttpHeader >)
3434
3535internal class HttpConnection constructor(
36- private val url : String ,
37- private val method : HttpRequestMethod ,
38- private val bodyMap : Map <* , * >? ,
39- private val bodyString : String? ,
40- contentType : String? ,
41- private val headers : List <HttpHeader > = listOf(),
42- val api : SpotifyApi <* , * >? = null
36+ private val url : String ,
37+ private val method : HttpRequestMethod ,
38+ private val bodyMap : Map <* , * >? ,
39+ private val bodyString : String? ,
40+ contentType : String? ,
41+ private val headers : List <HttpHeader > = listOf(),
42+ val api : SpotifyApi <* , * >? = null
4343) {
4444 private val contentType: ContentType = contentType?.let { ContentType .parse(it) } ? : ContentType .Application .Json
4545
@@ -82,8 +82,8 @@ internal class HttpConnection constructor(
8282 }
8383
8484 internal suspend fun execute (
85- additionalHeaders : List <HttpHeader >? = null,
86- retryIf502 : Boolean = true
85+ additionalHeaders : List <HttpHeader >? = null,
86+ retryIf502 : Boolean = true
8787 ): HttpResponse {
8888 val httpRequest = buildRequest(additionalHeaders)
8989
0 commit comments