mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
BackendSrv: support binary responseType like $http did (#29004)
This commit is contained in:
@@ -61,6 +61,15 @@ export type BackendSrvRequest = {
|
||||
*/
|
||||
params?: Record<string, any>;
|
||||
|
||||
/**
|
||||
* Define how the response object should be parsed. See:
|
||||
*
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data
|
||||
*
|
||||
* By default values are json parsed from text
|
||||
*/
|
||||
responseType?: 'json' | 'text' | 'arraybuffer' | 'blob';
|
||||
|
||||
/**
|
||||
* The credentials read-only property of the Request interface indicates whether the user agent should send cookies from the other domain in the case of cross-origin requests.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user