MCPcopy
hub / github.com/connectrpc/connect-go / IsSupported

Method IsSupported

error_writer.go:96–98  ·  view source on GitHub ↗

IsSupported checks whether a request is using one of the ErrorWriter's supported RPC protocols.

(request *http.Request)

Source from the content-addressed store, hash-verified

94// IsSupported checks whether a request is using one of the ErrorWriter's
95// supported RPC protocols.
96func (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

Callers 3

TestErrorWriterFunction · 0.95
NewAuthenticatedHandlerFunction · 0.95
TestServerFunction · 0.95

Calls 1

classifyRequestMethod · 0.95

Tested by 3

TestErrorWriterFunction · 0.76
NewAuthenticatedHandlerFunction · 0.76
TestServerFunction · 0.76