Files
crawlab/core/utils
Marvin Zhang c897fb58e4 refactor: streamline error handling and improve HTTP request management
- Removed the print flag from handleError function, simplifying error logging based on the development environment.
- Introduced a new performRequest function for standardized HTTP requests with JSON bodies, enhancing code reusability.
- Updated SendIMNotification and related functions to utilize the new RequestParam type for better clarity and consistency.
- Normalized HTTP request paths in the createHttpRequest method to ensure correct URL formatting.
- Added detailed error logging for JSON unmarshaling failures in syncFiles method.
- Introduced a NewHttpClient function to create HTTP clients with customizable timeouts.
2024-12-21 11:27:58 +08:00
..
2024-06-14 16:37:48 +08:00
2024-06-14 15:42:50 +08:00
2024-10-20 17:55:57 +08:00
2024-06-14 15:42:50 +08:00
2024-11-22 17:43:59 +08:00
2024-06-14 15:42:50 +08:00
2024-11-22 17:43:59 +08:00
2024-11-22 17:43:59 +08:00
2024-10-20 17:22:35 +08:00
2024-08-26 18:33:46 +08:00
2024-11-22 21:19:17 +08:00
2024-10-18 15:03:32 +08:00
2024-10-18 15:03:32 +08:00
2024-06-14 15:42:50 +08:00
2024-11-22 17:43:59 +08:00
2024-11-22 17:43:59 +08:00
2024-11-18 16:48:09 +08:00
2024-11-18 16:48:09 +08:00
2024-07-04 13:01:54 +08:00
2024-06-14 15:42:50 +08:00