(body []byte)
| 29 | } |
| 30 | |
| 31 | func streaming(body []byte) bool { |
| 32 | var probe struct { |
| 33 | Stream bool `json:"stream"` |
| 34 | } |
| 35 | if err := json.Unmarshal(body, &probe); err != nil { |
| 36 | return false |
| 37 | } |
| 38 | return probe.Stream |
| 39 | } |
| 40 | |
| 41 | // passthroughError emits the upstream's error response unchanged. |
| 42 | func passthroughError(c echo.Context, statusCode int, contentType string, body io.Reader) error { |
no outgoing calls
no test coverage detected