Correct Structuring of HTTP Header fields in Forms #317
Labels
Has Use Case Potential
The use case can be extracted and explained
http
related to http protocol binding
Selected for Use Case
Currently, we put HTTP header-related information in the vocabulary table at https://w3c.github.io/wot-binding-templates/bindings/protocols/http/#http-vocabulary-terms by taking them from https://www.w3.org/TR/HTTP-in-RDF10/ . However, it is not clear how these headers should look like in a TD when we think of content negotiation. With CoAP, we also support content negotiation since we defined our own ontology. If I want to say that the Thing requires a CBOR input but will deliver a response in JSON, it is not clear how we should structure the TD. This is also a case where there are multiple response and request content types possible (e.g. the request and response can be in JSON or CBOR). Below are some examples:
The array structure is quite annoying to parse so here are some alternatives:
The issue I see (probably the design behind HTTP in RDF) is that when we list possible headers as keys and if we are strict about it, then we will need to list all the possible headers in HTTP...
@mahdanoura could you provide your opinion based on whether my ideas fit well to the HTTP in RDF document?
@JKRhb since you have designed the CoAP content negotiation, your opinion is also very welcome :)
The text was updated successfully, but these errors were encountered: