Join Slack
Powered by
<@U0EACPP46> how complicated does it need to be?
# http4k
s
s4nchez
10/29/2018, 4:05 PM
@natpryce
how complicated does it need to be?
n
natpryce
10/29/2018, 4:53 PM
More complicated than “pick one”
natpryce
10/29/2018, 4:54 PM
parse the accept header, sort by “q”, pick the first one that is provided by the server
natpryce
10/29/2018, 4:54 PM
that’s enough for my needs
d
dave
10/29/2018, 7:08 PM
Feel free to PR that as an extension to the "content negotiation" strategies :)
dave
10/29/2018, 7:09 PM
Presume it would need to modify the accept header though... Hnm
n
natpryce
10/29/2018, 8:05 PM
I’ve got an implementation that does server-side content negotiation, but relies on apache http components, so prob not suitable as a PR
natpryce
10/29/2018, 8:05 PM
Doesn’t need to modify the accept header though
2
Views
Open in Slack
Previous
Next