Backend Plugins: Support handling of streaming resource response (#22580)

Use v0.19.0 of SDK.
Support handling of streaming resource response.
Disable gzip/compression middleware for resources 
to allow chunked/streaming response to clients the gzip
middleware had to be disabled since it buffers the full
response before sending it to the client.

Closes #22569

Co-Authored-By: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
Marcus EfraimssonandArve Knudsen authored and GitHub committed 2020-03-06 01:44:07 +07:00
1 parent f95c8b785c
commit 4ff613a432
17 files changed
+518 -241

No files matched your search

+2 -2
View File
@@ -226,8 +226,8 @@ func (hs *HTTPServer) CheckHealth(c *models.ReqContext) Response {
}
payload := map[string]interface{}{
"status": resp.Status.String(),
"info": resp.Info,
"status": resp.Status.String(),
"message": resp.Message,
}
if resp.Status != backendplugin.HealthStatusOk {