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

Client should download resource if server ignores prefer header #352

jamesagnew opened this Issue Apr 29, 2016 · 0 comments


None yet
1 participant

jamesagnew commented Apr 29, 2016

Ewout Kramer 14:07

If you do ask for a minimal return, you can ignore the body if the server does not honor the Prefer return header.
If you need the resource persisted, and the server does not honor the return=represenstion, you can take the ID from the header an perform a read.

This is actually what the .NET API does do hide these differences for the client: when return=representation and the server does not obey the prefer header, the .NET API will send out a GET, and return the representation to the client after all.

@jamesagnew jamesagnew closed this in e3e81ff May 2, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment