Юниверс DG SDK UI
v2.15.0

Класс FileHttpOp

Операция для загрузки файла с бэкенда.

Наследует BaseHttpOp и устанавливает тип ответа в Blob. Выполняет GET-запрос и обрабатывает заголовок Content-Disposition для извлечения имени файла из ответа.

Иерархия (Просмотр сводки)

Индекс

Конструкторы

  • Параметры

    • Optionalconfig: IOpConfig<never, any>
    • OptionalbaseUrl: string
    • OptionalapiVersion: string

    Возвращает FileHttpOp

Свойства

apiVersion: string
axiosPromise: AxiosPromise<any> | null
baseURL: string
config: IOpConfig
urlContext?: UrlContextType
operationId: number

Методы

  • Redefined function query url Builder

    Возвращает string

  • Выполняет HTTP-запрос и возвращает результат операции.

    Возвращает Promise<any>

  • return raw data from responce

    Параметры

    • value: Record<string, any>

    Возвращает Blob | undefined

  • Returns the name of the property where the expected data is stored

    Возвращает string | string[]

  • Returns the name of the property that contains the request success flag

    Возвращает string

  • Returns the response code that is considered successful

    Возвращает number

  • Returns true if the data has a success flag

    Параметры

    • data: Record<string, any>

    Возвращает boolean

  • Processing data received in the operation

    Параметры

    • data: Blob

    Возвращает any

  • Returns true if the data is valid and applicable to the successful result of the operation

    Параметры

    Возвращает boolean | Error

  • Handler the successful completion of the request

    Параметры

    Возвращает Promise<any>