go-control-plane icon indicating copy to clipboard operation
go-control-plane copied to clipboard

How correctly connect HTTPGateway v3 version to http.Server?

Open samoxbalz opened this issue 3 years ago • 0 comments

In v3 version, HTTPGateway has method ServeHTTP, that incompatible with method Handler in http.Server (Go version 1.18.3). So, I've got this error: Cannot use '&HTTPGateway{ Gateway: xds.HTTPGateway{Server: srv}, }' (type *HTTPGateway) as type Handler

Please give me some examples how I can use HTTPGateway with http.Server?

samoxbalz avatar Jul 24 '22 18:07 samoxbalz