dougblack / sleepy

rest for go
673 stars 56 forks source link

Implemented support to return arbitrary content types #25

Open longsleep opened 10 years ago

longsleep commented 10 years ago

This PR adds direct support for string and []byte response data from sleepy handler implementations. It also makes sure that the response header content-type is set if JSON is encoded by sleepy.