httpwg / http-extensions

HTTP Extensions in progress
https://httpwg.org/http-extensions/
447 stars 146 forks source link

QUERY: How to indicate preference for direct response style? #2897

Open nicowilliams opened 2 months ago

nicowilliams commented 2 months ago

It might be useful to allow the user-agent to request direct responses rather than indirect.

reschke commented 2 months ago

Use case?

nicowilliams commented 2 months ago

The user-agent might want to produce a URI that the user can share, without a need to execute the query. Conversely, a user-agent might wish to optimize away a round trip.

reschke commented 1 month ago

Not convinced. This seems to fall into the category of "might be useful". At the end of the day, a server would always be allowed to ignore that request.

This might be something for the "Prefer" header field, if there's sufficient interest from developers.

mnot commented 2 weeks ago

Discussed offline with @reschke. This seems orthogonal to QUERY - it's also useful for eg POST. See also https://httpwg.org/specs/rfc7240.html#return