hudsonb
10/16/2018, 1:14 PMThe HttpRequestBuilder.body property can be a subtype of OutgoingContent as well as a String instance:
body = "HELLO WORLD!"
body = TextContent("HELLO WORLD!", ContentType.Text.Plain)
...
Got me excited that setter overrides had been added or something but body
is just defined as Any
. 😭hudsonb
10/16/2018, 1:15 PMJsonFeature
, but damn I was excited =PDeactivated User
10/16/2018, 1:15 PMDeactivated User
10/16/2018, 1:16 PMhudsonb
10/16/2018, 1:19 PMHttpRequestBuilder.body property can be a subtype of OutgoingContent as well as a String
made me think that setter overloads had been added: https://youtrack.jetbrains.com/issue/KT-4075Deactivated User
10/16/2018, 1:21 PMAny
but you can set those instances. I guess that right now you have to use methods. setBody(content: TextContent)
+ setBody(content: String)
or so.