64 lines
2 KiB
Text
64 lines
2 KiB
Text
import Admonition from "@theme/Admonition";
|
|
|
|
# Data
|
|
|
|
<Admonition type="warning" title="warning">
|
|
This page may contain outdated information. It will be updated as soon as possible.
|
|
</Admonition>
|
|
|
|
## API Request
|
|
|
|
This component sends HTTP requests to the specified URLs.
|
|
|
|
Use this component to interact with external APIs or services and retrieve data. Ensure that the URLs are valid and that you configure the method, headers, body, and timeout correctly.
|
|
|
|
**Parameters:**
|
|
|
|
- **URLs:** The URLs to target.
|
|
- **Method:** The HTTP method, such as GET or POST.
|
|
- **Headers:** The headers to include with the request.
|
|
- **Body:** The data to send with the request (for methods like POST, PATCH, PUT).
|
|
- **Timeout:** The maximum time to wait for a response.
|
|
|
|
---
|
|
|
|
## Directory
|
|
|
|
This component recursively retrieves files from a specified directory.
|
|
|
|
Use this component to retrieve various file types, such as text or JSON files, from a directory. Make sure to provide the correct path and configure the other parameters as needed.
|
|
|
|
**Parameters:**
|
|
|
|
- **Path:** The directory path.
|
|
- **Types:** The types of files to retrieve. Leave this blank to retrieve all file types.
|
|
- **Depth:** The level of directory depth to search.
|
|
- **Max Concurrency:** The maximum number of simultaneous file loading operations.
|
|
- **Load Hidden:** Set to true to include hidden files.
|
|
- **Recursive:** Set to true to enable recursive search.
|
|
- **Silent Errors:** Set to true to suppress exceptions on errors.
|
|
- **Use Multithreading:** Set to true to use multithreading in file loading.
|
|
|
|
---
|
|
|
|
## File
|
|
|
|
This component loads a file.
|
|
|
|
Use this component to load files, such as text or JSON files. Ensure you specify the correct path and configure other parameters as necessary.
|
|
|
|
**Parameters:**
|
|
|
|
- **Path:** The file path.
|
|
- **Silent Errors:** Set to true to prevent exceptions on errors.
|
|
|
|
---
|
|
|
|
## URL
|
|
|
|
This component retrieves content from specified URLs.
|
|
|
|
Ensure the URLs are valid and adjust other parameters as needed.
|
|
**Parameters:**
|
|
|
|
- **URLs:** The URLs to retrieve content from.
|