NewServer makes a new Server.
(handler http.Handler, opts ...Option)
| 67 | |
| 68 | // NewServer makes a new Server. |
| 69 | func NewServer(handler http.Handler, opts ...Option) *Server { |
| 70 | return applyServerOptions(&Server{handler: handler}, opts...) |
| 71 | } |
| 72 | |
| 73 | // Handle implements HTTPServer. |
| 74 | func (s Server) Handle(ctx context.Context, r *httpgrpc.HTTPRequest) (*httpgrpc.HTTPResponse, error) { |