IsSupported checks whether a request is using one of the ErrorWriter's supported RPC protocols.
(request *http.Request)
| 94 | // IsSupported checks whether a request is using one of the ErrorWriter's |
| 95 | // supported RPC protocols. |
| 96 | func (w *ErrorWriter) IsSupported(request *http.Request) bool { |
| 97 | return w.classifyRequest(request) != unknownProtocol |
| 98 | } |
| 99 | |
| 100 | // Write an error, using the format appropriate for the RPC protocol in use. |
| 101 | // Callers should first use IsSupported to verify that the request is using one |