FHIR Chat · Handling of HTTP Prefer · implementers

Stream: implementers

Topic: Handling of HTTP Prefer


view this post on Zulip Alexander Henket (Nov 14 2019 at 11:57):

The search specification says:
_Servers SHOULD honor the client's request, but are not required to do so._

Does that statement include the option for a server to ignore HTTP Header Prefer: handling=strict? That would be a problem for the client as then it cannot count on its request being interpreted as intended.

view this post on Zulip Grahame Grieve (Nov 14 2019 at 12:08):

right. Postels rules apply here

view this post on Zulip Alexander Henket (Nov 14 2019 at 12:10):

Be liberal in what you accept, and conservative in what you send.?

So if I query a server and send "Prefer: handling=strict", and get data, I might still find that it did not quite match my query because some parts were ignored?

view this post on Zulip Alexander Henket (Nov 14 2019 at 12:12):

Or do you mean that in constructing my query I should have carefully examined the ConformanceStatement so I would never send anything that the server would not support thereby avoiding the issue?

view this post on Zulip Grahame Grieve (Nov 14 2019 at 12:12):

yes. you could at least check. I don't think we can get away with making it tighter

view this post on Zulip Grahame Grieve (Nov 14 2019 at 12:12):

an the conformance statement does't say anything about this, i think

view this post on Zulip Alexander Henket (Nov 14 2019 at 12:14):

So ... presumably I could mitigate this by requiring support for HTTP Prefer, not leaving it up to chance.

view this post on Zulip Grahame Grieve (Nov 14 2019 at 12:14):

well...maybe you could do that, even if we can't in the standard? I don't have a strong feeling on this


Last updated: Apr 12 2022 at 19:14 UTC