stretchr / goweb

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

Codec options passthrough #80

Closed nelsam closed 10 years ago

nelsam commented 10 years ago

This adds a CodecOptions method to context.Context, which returns the map that is passed as the options value when calling codec.Marshal on the chosen codec in API responders. This allows custom options to be passed to the chosen codec.