Conversation
|
I can't think of many uses of |
|
@kylef I'm less concerned with accessing the property, just didn't see a reason for it to be internal. Mainly wanted to expose the initializer so quick byte payloads can be created w/ arbitrary data. |
Everything should be private API unless there is a good reason for it to be public. Once public we have to maintain backwards compatibility and it's harder to change or remove it in the future. I think we can provide higher level API to create bodies from strings and files so I can't see any uses for this particular class to be public. If there is a legitimate use-case for this to be public, then we can explore doing so at any time. |
|
@kylef I think there's a bit of confusion. In the sentence quoted, I was referring specifically to the For the object, The other alternative would be to not accept a |
I think the
BytesPayloadobject is useful as a public asset for quickly declaringPayloadConvertibletypes.