stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

Make Goweb care about the Accept header #20

Closed matryer closed 11 years ago

matryer commented 11 years ago

Currently JSON is hard coded into Goweb... but the http://github.com/stretchrcom/codecs package supports a content negotiation system, so we should use that.

tylerstillwater commented 11 years ago

It sort of does, but it only examines the content type header, not the accept header from the client.

We could add content negotiation to codecs, I suppose?

https://en.wikipedia.org/wiki/Content_negotiation

matryer commented 11 years ago

It's already in the codecs package.

Now it's in Goweb too.

Mat

On 5 Jun 2013, at 21:32, Tyler notifications@github.com wrote:

It sort of does, but it only examines the content type header, not the accept header from the client.

We could add content negotiation to codecs, I suppose?

— Reply to this email directly or view it on GitHub.