It seems not possible define the content-type for an out message.
In my function.json I have an out serviceBus that works fine but I'm unable to define the content-type.
but outmsg is defined as azure.functions.Out[str].
Honestly, I'm not fluent in Python, It seems to me that Out is a monad, an object that contains a string.
it is not clear if we can define Out with another type other than str.
And in any case even if the message is sent as str with content-type for the receiver is application/xml; charset=utf-8
I think we should be able at least to specify the content type. Something like this:
It seems not possible define the content-type for an out message. In my function.json I have an out serviceBus that works fine but I'm unable to define the content-type.
but
outmsg
is defined asazure.functions.Out[str]
. Honestly, I'm not fluent in Python, It seems to me thatOut
is a monad, an object that contains a string. it is not clear if we can define Out with another type other thanstr
. And in any case even if the message is sent as str with content-type for the receiver isapplication/xml; charset=utf-8
I think we should be able at least to specify the content type. Something like this:
Or we could extend the function.json adding the default content type parameter of out messages.