HasMixedResults returns true if the method has both Result and StreamingResult defined with different types, indicating support for content negotiation.
()
| 432 | // HasMixedResults returns true if the method has both Result and StreamingResult |
| 433 | // defined with different types, indicating support for content negotiation. |
| 434 | func (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. |
no outgoing calls
no test coverage detected