The 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
. 😭
📝 1
hudsonb
10/16/2018, 1:15 PM
Not that that doesn't make sense, particularly given the