dougblack / sleepy

rest for go
675 stars 56 forks source link

Added access to request headers and ability to specify response headers. #17

Closed oleksandr closed 10 years ago

oleksandr commented 10 years ago

Pretty straight forward solution. The handler function interface was extended with 3 input argument and 3 return argument:

map[string][]string

I was not sure if it makes sense to define a type alias for it for the less typing.

dougblack commented 10 years ago

@oleksandr This makes sense. I'm not entirely sure what the interface here should look like, but this is definitely a step in the right direction so I'm going to go ahead and merge this. Thanks for contributing!