HTTPError uses the mux-configured error handler.
(ctx context.Context, mux *ServeMux, marshaler Marshaler, w http.ResponseWriter, r *http.Request, err error)
| 78 | |
| 79 | // HTTPError uses the mux-configured error handler. |
| 80 | func HTTPError(ctx context.Context, mux *ServeMux, marshaler Marshaler, w http.ResponseWriter, r *http.Request, err error) { |
| 81 | mux.errorHandler(ctx, mux, marshaler, w, r, err) |
| 82 | } |
| 83 | |
| 84 | // HTTPStreamError uses the mux-configured stream error handler to notify error to the client without closing the connection. |
| 85 | func HTTPStreamError(ctx context.Context, mux *ServeMux, marshaler Marshaler, w http.ResponseWriter, r *http.Request, err error) { |
no outgoing calls