New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to specify request headers? #1734
Comments
This is actually an important question and further examples can help clarifying this. So this done via the Protocol Bindings with HTTP being available in the TD spec. For example, As explained in https://w3c.github.io/wot-thing-description/#http-binding-assertions , one solution is to use the HTTP in RDF at https://www.w3.org/TR/HTTP-in-RDF10/ to describe such request headers. In a TD form, you can have: "htv:headers":
[
{
"htv:fieldName": "Accept",
"htv:fieldValue": "application/json"
}, Which means that the Consumer needs to supply an Accept header with value of In case you are looking for a more generally-applicable answer, I would say that this would be done via context extensions. Please see https://w3c.github.io/wot-thing-description/#sec-context-extensions for more information about this mechanism of the TD (of JSON-LD to be specific). Note: This assertion was in the 1.0 version as well. Please see https://www.w3.org/TR/wot-thing-description/#protocol-bindings |
@egekorkan
|
My pleasure in answering them. For the further questions:
|
from today's TD call, the group like to close this issue @mlagally please check if this is ok for you |
Call of 05.04:
|
There's a normative requirement to specify request headers as part of a form.
How can that be done?
The text was updated successfully, but these errors were encountered: