-
Notifications
You must be signed in to change notification settings - Fork 90
Description
Hi all. I'm opening this issue as a consequence of the latest discussion during the TD/Protocol binding templates call. During the call, people complained about how node-wot clients (primarily HTTP and COAP) are ignoring the content-type field in forms. Sadly I couldn't find the minutes of the call so I'm trying to summarize by heart.
Looking at https://github.com/eclipse/thingweb.node-wot/blob/master/packages/binding-http/src/http-client-impl.ts, what I see, is that the content type is taken into account for every write operation (i.e., invokeaction and writeproperty), whereas is ignored in reading operations (node-wot uses what the server gives). Do people feel like that node-wot HTTP client should set the Accept header to the content-type value when reading? To me is quite redundant but it does not hurt that much. Do you have a compelling reason for doing so?
I know that the COAP discussion is more controversial due to mappings between coap-specific fields and WoT content-type, so I would leave it after we have a common take on HTTP.
pinging relevant people: @egekorkan @mkovatsc @danielpeintner @hidetak @JKRhb. If I recalled something wrong feel free to correct me, I'll update this first post accordingly.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status