Versions in this module Expand all Collapse all v1 v1.2.0 Mar 25, 2019 v1.1.0 Sep 27, 2016 Changes in this version + type Codec interface + NewRequest func(*http.Request) CodecRequest + type CodecRequest interface + Method func() (string, error) + ReadRequest func(interface{}) error + WriteResponse func(http.ResponseWriter, interface{}, error) error + type RequestInfo struct + Error error + Method string + Request *http.Request + StatusCode int + type Server struct + func NewServer() *Server + func (s *Server) HasMethod(method string) bool + func (s *Server) RegisterAfterFunc(f func(i *RequestInfo)) + func (s *Server) RegisterBeforeFunc(f func(i *RequestInfo)) + func (s *Server) RegisterCodec(codec Codec, contentType string) + func (s *Server) RegisterInterceptFunc(f func(i *RequestInfo) *http.Request) + func (s *Server) RegisterService(receiver interface{}, name string) error + func (s *Server) RegisterTCPService(receiver interface{}, name string) error + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)