[Specifications] expectHeader usage (#212)

rb1193 has just created a new issue for https://github.com/HydraCG/Specifications:

== expectHeader usage ==
## Describe your API requirement

I've been looking for some documentation on the expected usage of the hydra:expectsHeader and hydra:returnsHeader properties, but to no avail. Is any available? I was thinking of potentially using expectsHeader to state that an Authorization header should be provided on protected routes but I am not sure whether that is appropriate.

I'm also surprised that the properties only allow one value (though I don't have a use case for more than one at this point). Can anybody explain why that is?


Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/212 using your GitHub account

Received on Thursday, 30 April 2020 08:06:44 UTC