// Override the serialization parameter according to the Content-Type header if it is not set yet
if((os.lengthof()==0)&&((h.compare("Content-Type")==0)||(h.compare("Content-type")==0)||(h.compare("content-type")==0))){// Force the serialization parameter to be set according to the Content-Type header
if((os.lengthof()==0||params[params::serialization]=="binary")&&((h.compare("Content-Type")==0)||(h.compare("Content-type")==0)||(h.compare("content-type")==0))){// Force the serialization parameter to be set according to the Content-Type header — "binary" is the generic BinaryBody label (raw bytes with no known sub-protocol); refine it via Content-Type just like the "os still empty" case, since e.g. CBOR bodies always land here (non-printable bytes) but need their real serialization identified for codec dispatch.
// Override the serialization parameter according to the Content-Type header if it is not set yet
if((os.lengthof()==0)&&((h.compare("Content-Type")==0)||(h.compare("Content-type")==0)||(h.compare("content-type")==0))){// Force the serialization parameter to be set according to the Content-Type header
if((os.lengthof()==0||params[params::serialization]=="binary")&&((h.compare("Content-Type")==0)||(h.compare("Content-type")==0)||(h.compare("content-type")==0))){// Force the serialization parameter to be set according to the Content-Type header — "binary" is the generic BinaryBody label (raw bytes with no known sub-protocol); refine it via Content-Type just like the "os still empty" case, since e.g. CBOR bodies always land here (non-printable bytes) but need their real serialization identified for codec dispatch.