Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Infiniflow Ragflow Request Client

From Leeroopedia
Revision as of 11:22, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Infiniflow_Ragflow_Request_Client.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains Frontend, Networking, Infrastructure
Last Updated 2026-02-12 06:00 GMT

Overview

Concrete legacy umi-request based HTTP client with request/response interceptors for the RAGFlow frontend.

Description

The utils/request.ts module configures a umi-request based HTTP client (used by legacy service modules) with: request interceptors for auth token injection, response interceptors for error handling and 401 redirect, and base URL configuration.

Usage

This is the legacy HTTP client used by older service modules. New code should use next-request.ts instead.

Code Reference

Source Location

Signature

const request: RequestMethod;
export default request;

Import

import request from '@/utils/request';

I/O Contract

Inputs

Name Type Required Description
url string Yes API endpoint URL
options RequestOptionsInit No Request configuration

Outputs

Name Type Description
returns RequestMethod Configured umi-request instance

Usage Examples

import request from '@/utils/request';
const data = await request('/api/v1/old-endpoint', { method: 'GET' });

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment