MCPcopy Create free account
hub / github.com/goadesign/goa / HasMixedResults

Method HasMixedResults

expr/method.go:434–436  ·  view source on GitHub ↗

HasMixedResults returns true if the method has both Result and StreamingResult defined with different types, indicating support for content negotiation.

()

Source from the content-addressed store, hash-verified

432// HasMixedResults returns true if the method has both Result and StreamingResult
433// defined with different types, indicating support for content negotiation.
434func (m *MethodExpr) HasMixedResults() bool {
435 return m.Result != nil && m.StreamingResult != nil && m.Result != m.StreamingResult
436}
437
438// helper function that duplicates just enough of a security expression so that
439// its scheme names can be overridden without affecting the original.

Callers 6

ValidateMethod · 0.80
analyzeMethod · 0.80
initSSEDataFunction · 0.80
analyzeMethod · 0.80
buildMethodDataMethod · 0.80
initStreamDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected