Versions in this module Expand all Collapse all v1 v1.1.0 Sep 27, 2016 Changes in this version + var DefaultEncoder = &encoder + var DefaultEncoderSelector = &encoderSelector + func WriteError(w http.ResponseWriter, status int, msg string) + type Codec interface + NewRequest func(*http.Request) CodecRequest + type CodecRequest interface + Method func() (string, error) + ReadRequest func(interface{}) error + WriteError func(w http.ResponseWriter, status int, err error) + WriteResponse func(http.ResponseWriter, interface{}) + type CompressionSelector struct + func (_ *CompressionSelector) Select(r *http.Request) Encoder + type Encoder interface + Encode func(w http.ResponseWriter) io.Writer + type EncoderSelector interface + Select func(r *http.Request) Encoder + type Server struct + func NewServer() *Server + func (s *Server) HasMethod(method string) bool + func (s *Server) RegisterCodec(codec Codec, contentType string) + func (s *Server) RegisterService(receiver interface{}, name string) error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)