dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

[Help] when I extened a new serialization SPI,how to decide contentType

Open vio-lin opened this issue 7 years ago • 2 comments

  • [ X] I have searched the issues of this repository and believe that this is not a duplicate.
  • [X ] I have checked the FAQ of this repository and believe that this is not a duplicate.

I add one new serialization and there can't find any useage of method Serialization.getContentType() in project. So what string should i return. And if there are some rules of this string value.

vio-lin avatar May 06 '19 08:05 vio-lin

I think that if it is a json type, use text/, if it is a binary type, use x-application/, what do you think?

Leishunyu avatar May 07 '19 01:05 Leishunyu

I see.

vio-lin avatar May 07 '19 03:05 vio-lin